示例#1
0
 public static IQuery <T> From <T>(this IDbConnection connection, string where, params object[] options) where T : class
 {
     return(IQ.From <T>(where, options, connection));
 }
示例#2
0
 public static T Load <T>(int primaryKeyValue, params object[] options) where T : class
 {
     return(IQ.From <T>(primaryKeyValue, options).Single());
 }
示例#3
0
 public static void Load <T>(this T source, int primaryKeyValue) where T : class, IQObject
 {
     IQ.From <T>(primaryKeyValue).To(source).Single();
 }
示例#4
0
 public static T Load <T>(string where, params object[] parameters) where T : class
 {
     return(IQ.From <T>(where, parameters).Single());
 }
示例#5
0
 public static void Load <T>(this T source, string where, params object[] parms) where T : class, IQObject
 {
     IQ.From <T>(where, parms).To(source).Single();
 }