Exemple #1
0
 ///<summary>
 ///</summary>
 ///<param name="redisKey"></param>
 ///<param name="schema"></param>
 ///<param name="dbFilter"></param>
 public TransReceiveParam(string redisKey, SchemaTable schema, DbDataFilter dbFilter)
     : this(redisKey)
 {
     Schema   = schema;
     DbFilter = dbFilter;
 }
 /// <summary>
 ///
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="schema"></param>
 /// <param name="filter"></param>
 /// <param name="setFunc"></param>
 /// <param name="dataList"></param>
 /// <returns></returns>
 public static bool TryReceiveSql <T>(SchemaTable schema, DbDataFilter filter, EntityPropertySetFunc <T> setFunc, out List <T> dataList)
     where T : new()
 {
     return(new SqlDataReceiver(schema, filter).TryReceive(setFunc, out dataList));
 }
 /// <summary>
 ///
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="schema"></param>
 /// <param name="filter"></param>
 /// <param name="dataList"></param>
 /// <returns></returns>
 public static bool TryReceiveSql <T>(SchemaTable schema, DbDataFilter filter, out List <T> dataList)
     where T : ISqlEntity, new()
 {
     return(new SqlDataReceiver(schema, filter).TryReceive(out dataList));
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="schema"></param>
 /// <param name="filter"></param>
 /// <returns></returns>
 public static IDataReceiver GetDataGetter(SchemaTable schema, DbDataFilter filter)
 {
     return(new SqlDataReceiver(schema, filter));
 }