예제 #1
0
 /// <summary>
 /// 根据主键加载数据,如果需要查询Realtime表,请使用包含参数id的重载方法
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="queryDbCommand"></param>
 /// <returns></returns>
 public static T Load <T>(DataCommand queryDbCommand) where T : class, new()
 {
     return(Load <T>(queryDbCommand, null));
 }
예제 #2
0
 /// <summary>
 /// 查询数据
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="queryDbCommand">查询QueryDB数据的Command</param>
 /// <returns></returns>
 public static List <T> Query <T>(DataCommand queryDbCommand) where T : class, new()
 {
     return(queryDbCommand.ExecuteEntityList <T>());
 }