public NpgsqlCommand BuildCommand <T>(QueryModel queryModel) { var tableName = _schema.StorageFor(typeof(T)).TableName; var query = new DocumentQuery <T>(tableName, queryModel); return(query.ToCommand()); }
public NpgsqlCommand BuildCommand <T>(QueryModel queryModel) { var mapping = _schema.MappingFor(typeof(T)); var query = new DocumentQuery(mapping, queryModel); return(query.ToCommand()); }
public NpgsqlCommand BuildCommand(QueryModel queryModel) { var mapping = _schema.MappingFor(queryModel.MainFromClause.ItemType); var query = new DocumentQuery(mapping, queryModel, _serializer); _schema.EnsureStorageExists(mapping.DocumentType); return(query.ToCommand()); }