Esempio n. 1
0
 public static T FindOne <T>(string connectionName, string database, string collection, MongoQueryWarpper <T> querys, MongoFieldSelecter <T> fields, MongoSortWarpper sorts) where T : new()
 {
     return(FindOne <T>(connectionName, database, collection, (MongoQueryWarpper)querys, fields == null ? null : fields.GetFields(), sorts));
 }
Esempio n. 2
0
 public static List <T> Find <T>(string connectionName, string database, string collection, MongoQueryWarpper <T> querys, int pageindex, int pagesize, MongoFieldSelecter <T> fieldselecter, MongoSortWarpper <T> sorts) where T : new()
 {
     return(Find <T>(connectionName, database, collection, (MongoQueryWarpper)querys, pageindex, pagesize, fieldselecter == null ? null : fieldselecter.GetFields(), (MongoSortWarpper)sorts));
 }