Method | Description | |
---|---|---|
Any ( Expression filter ) : bool |
Check if there're any UserGroups matching a specific filter.
|
|
Count ( Expression filter ) : int |
Count the number of objects that satisfy the filter
|
|
Delete ( UserGroup entity ) : void |
Remove a UserGroup from the data store
|
|
First ( Expression filter ) : UserGroup |
Get the first UserGroup matching a specific filter.
|
|
Get ( Expression filter ) : IEnumerable |
Get a filtered list of UserGroups from data storage Calling this method returns the data directly. It will execute the data retrieval - in this case an sql transaction.
|
|
Get ( Expression filter, Func orderBy ) : IEnumerable |
Get a filtered, ordered list of UserGroup
|
|
GetById ( int id ) : UserGroup |
Get a UserGroup from it's id
|
|
GetByUserGroupName ( string UserGroupName ) : UserGroup |
|
|
ListAll ( ) : IQueryable |
Return a queryable string for query construction. NOTE - This is bad. Replace this method with proper expression tree construction and strictly return enumerated lists. All data handling should happen within the repository.
|
|
Save ( UserGroup entity ) : void |
Add a new UserGroup to the data store
|
|
Update ( UserGroup entity ) : void |
Update an existing UserGroup
|
|
UserGroupRepository ( CrashReportEntities entityContext ) : System |
Constructor
|
public First ( Expression filter ) : UserGroup | ||
filter | Expression | |
return | UserGroup |
public Get ( Expression filter ) : IEnumerable |
||
filter | Expression | A linq expression used to filter the UserGroup table |
return | IEnumerable |
public Get ( Expression filter, Func orderBy ) : IEnumerable |
||
filter | Expression | An expression used to filter the UserGroups |
orderBy | Func | An function delegate UserGroupd to order the results from the UserGroup table |
return | IEnumerable |
public GetById ( int id ) : UserGroup | ||
id | int | The id of the UserGroup to retrieve |
return | UserGroup |
public GetByUserGroupName ( string UserGroupName ) : UserGroup | ||
UserGroupName | string | |
return | UserGroup |
public UserGroupRepository ( CrashReportEntities entityContext ) : System | ||
entityContext | CrashReportEntities | A reference to the *single* instance of the data context. |
return | System |