/// <summary> /// Initializes static members of the <see cref="DownloadMetadataStore"/> class. /// </summary> static DownloadMetadataStore() { // Map partition key, row key for this type AbstractEntityAdapter.RegisterType <DownloadMetadataEntity>( (downloadMetadata) => downloadMetadata.PartitionKey, (downloadMetadata) => downloadMetadata.RowKey, (downloadMetadata, pk) => { }, (downloadMetadata, rk) => { }); }
/// <summary> /// Initializes static members of the <see cref="AgencyStore"/> class. /// </summary> static AgencyStore() { // Map partition key, row key for this type AbstractEntityAdapter.RegisterType <AgencyEntity>( (agency) => agency.PartitionKey, (agency) => agency.RowKey, (agency, pk) => { }, (agency, rk) => { }); }
/// <summary> /// Initializes static members of the <see cref="RegionStore"/> class. /// </summary> static RegionStore() { // Map partition key and row key for this type AbstractEntityAdapter.RegisterType <RegionEntity>( (region) => region.PartitionKey, (region) => region.RowKey, (region, pk) => { }, (region, rk) => { }); }
/// <summary> /// Initializes static members of the <see cref="PublishMetadataStore"/> class. /// </summary> static PublishMetadataStore() { // Map partition key, row key for this type AbstractEntityAdapter.RegisterType <PublishMetadataEntity>( (publishMetadata) => publishMetadata.PartitionKey, (publishMetadata) => publishMetadata.RowKey, (publishMetadata, pk) => { }, (publishMetadata, rk) => { }); }
/// <summary> /// Initializes static members of the <see cref="StopStore"/> class. /// </summary> static StopStore() { // Map partition key, row key for this type AbstractEntityAdapter.RegisterType <StopEntity>( (stop) => stop.PartitionKey, (stop) => stop.RowKey, (stop, pk) => { }, (stop, rk) => { }); }
/// <summary> /// Initializes static members of the <see cref="RouteStore"/> class. /// </summary> static RouteStore() { // Map partition key, row key for this type AbstractEntityAdapter.RegisterType <RouteEntity>( (route) => route.PartitionKey, (route) => route.RowKey, (route, pk) => { }, (route, rk) => { }); }
/// <summary> /// Initializes static members of the <see cref="RegionsListStore"/> class. /// </summary> static RegionsListStore() { // map partition key and row key for this type AbstractEntityAdapter.RegisterType <RegionsListEntity>( (regionsList) => regionsList.PartitionKey, (regionsList) => regionsList.RowKey, (regionsList, pk) => { }, (regionsList, rk) => { }); }
/// <summary> /// Initializes a new instance of the <see cref="EntityAdapter{T}"/> class. /// </summary> /// <param name="innerObject">innerObject</param> /// <param name="objectToPartitionKey">objectToPartitionKey</param> /// <param name="objectToRowKey">objectToRowKey</param> /// <param name="partitionKeyToObject">partitionKeyToObject</param> /// <param name="rowKeyToObject">rowKeyToObject</param> public EntityAdapter(T innerObject, Func <T, string> objectToPartitionKey, Func <T, string> objectToRowKey, Action <T, string> partitionKeyToObject, Action <T, string> rowKeyToObject) : this(innerObject) { AbstractEntityAdapter.RegisterType(objectToPartitionKey, objectToRowKey, partitionKeyToObject, rowKeyToObject); }