C# 클래스 Sample.UserRepository

파일 보기 프로젝트 열기: Hallmanac/AzureCloudTable 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
UserContext CloudTableContext

공개 메소드들

메소드 설명
GetAllUsers ( ) : List
GetAllVersions ( User givenUser ) : IEnumerable
GetUsersByFirstName ( string firstName ) : IEnumerable
GetUsersByTypeOfUser ( string userType ) : List
GetUsersThatLiveInFlorida ( ) : List
Save ( User user ) : void
UserRepository ( ) : System.Collections.Generic

비공개 메소드들

메소드 설명
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.

메소드 상세

GetAllUsers() 공개 메소드

public GetAllUsers ( ) : List
리턴 List

GetAllVersions() 공개 메소드

public GetAllVersions ( User givenUser ) : IEnumerable
givenUser User
리턴 IEnumerable

GetUsersByFirstName() 공개 메소드

public GetUsersByFirstName ( string firstName ) : IEnumerable
firstName string
리턴 IEnumerable

GetUsersByTypeOfUser() 공개 메소드

public GetUsersByTypeOfUser ( string userType ) : List
userType string
리턴 List

GetUsersThatLiveInFlorida() 공개 메소드

public GetUsersThatLiveInFlorida ( ) : List
리턴 List

Save() 공개 메소드

public Save ( User user ) : void
user User
리턴 void

UserRepository() 공개 메소드

public UserRepository ( ) : System.Collections.Generic
리턴 System.Collections.Generic

프로퍼티 상세

UserContext 공개적으로 프로퍼티

public CloudTableContext UserContext
리턴 CloudTableContext