public static CollectionSchema DeclareCollection <T>(this IDataClient @this) { var description = TypeDescriptionsCache.GetDescription(typeof(T)); var schema = description; @this.DeclareCollection(description.CollectionName, schema); return(schema); }