C# Class Sample.UserRepository

Afficher le fichier Open project: Hallmanac/AzureCloudTable Class Usage Examples

Méthodes publiques

Свойство Type Description
UserContext CloudTableContext

Méthodes publiques

Méthode Description
GetAllUsers ( ) : List
GetAllVersions ( User givenUser ) : IEnumerable
GetUsersByFirstName ( string firstName ) : IEnumerable
GetUsersByTypeOfUser ( string userType ) : List
GetUsersThatLiveInFlorida ( ) : List
Save ( User user ) : void
UserRepository ( ) : System.Collections.Generic

Private Methods

Méthode Description
InitPartitionSchemas ( ) : void

The partition schemas are how your domain object gets sorted/categorized/grouped inside Azure Table storage. You create them in your client code and then "add" them to the CloudTableContext class that you're using to interact with the Table (in this case _userContext). Remember, these are just schema definitions for one particular PartitionKey. There is a DefaultSchema that get set on the CloudTableContext class automatically (in this case _userContext) which sets the PartitionKey to be the name of the object Type and the RowKey based on the Id property of the object provided during intialization.

Method Details

GetAllUsers() public méthode

public GetAllUsers ( ) : List
Résultat List

GetAllVersions() public méthode

public GetAllVersions ( User givenUser ) : IEnumerable
givenUser User
Résultat IEnumerable

GetUsersByFirstName() public méthode

public GetUsersByFirstName ( string firstName ) : IEnumerable
firstName string
Résultat IEnumerable

GetUsersByTypeOfUser() public méthode

public GetUsersByTypeOfUser ( string userType ) : List
userType string
Résultat List

GetUsersThatLiveInFlorida() public méthode

public GetUsersThatLiveInFlorida ( ) : List
Résultat List

Save() public méthode

public Save ( User user ) : void
user User
Résultat void

UserRepository() public méthode

public UserRepository ( ) : System.Collections.Generic
Résultat System.Collections.Generic

Property Details

UserContext public_oe property

public CloudTableContext UserContext
Résultat CloudTableContext