Candor.WindowsAzure.Storage.Table.CloudTableSequenceIdOptimisticSyncStore.GetSequenceIdStore C# (CSharp) 메소드

GetSequenceIdStore() 공개 메소드

Gets the sequence for a given table.
public GetSequenceIdStore ( string tableName ) : SequenceIdStore
tableName string
리턴 Candor.Data.SequenceIdStore
        public SequenceIdStore GetSequenceIdStore(string tableName)
        {
            var schema = SchemaTableProxy.Get(tableName.GetValidPartitionKey(), tableName.GetValidRowKey());
            if (schema == null || schema.Entity == null)
                return null;
            var sequence = SequenceTableProxy.Get(tableName.GetValidPartitionKey(), tableName.GetValidRowKey()) ??
                CreateSequenceFromSchema(tableName);
            return new SequenceIdStore
                {
                    FinalCachedId = sequence.Entity.Properties[PropertyFinalCachedId].StringValue,
                    Schema = schema.Entity
                };
        }