Пример #1
0
 /// <summary>
 ///     获取数据库中的所有实体,通过传递实例化委托,提升反射性能
 /// </summary>
 /// <returns></returns>
 public static List <T> GetAllEntities <T>(this IDataBaseConnector connector, string tableName)
     where T : class, IFreeDocument, new()
 {
     return(connector.GetEntityList <T>(tableName));
 }
Пример #2
0
 public IList <IFreeDocument> FetchRange(int startIndex, int count)
 {
     return(connector.GetEntityList <IFreeDocument>(tableName, count, startIndex));
 }