public override IEnumerable <StorageResourceInfo> GetStorageResourceInfos(Type t) { yield return(new StorageResourceInfo { tableName = GetTableName(t), message = new WhereInformation[] { }, sortKey = default,
public virtual IEnumerable <StorageResourceInfo> GetStorageResourceInfos(Type t) { string GetSortKey(string tableName) { if (this.SortKey.HasBlackSpace()) { return(this.SortKey); } return(tableName); } var attr = this; var baseResWhereInfo = WhereInformation .GenerateWhereInformation( this.PartitionKeyGenerator.Invoke(), this.RowKeyGenerator.Invoke()) .ToArray(); var baseResInfo = new StorageResourceInfo { tableName = this.GetTableName(t), sortKey = GetSortKey(attr.GetTableName(t)), message = baseResWhereInfo, }; return(baseResInfo.AsEnumerable()); }