示例#1
0
 public static bool Exists <T>(this DataContextMoudle <T> dataContext) where T : new()
 {
     return(dataContext.Exists(dataContext.keyName, dataContext.GetKeyValue()));
 }
示例#2
0
 public static bool Exists <T>(this DataContextMoudle <T> dataContext, Expression <Func <T, object> > colExpress, object val) where T : new()
 {
     return(dataContext.Exists(dataContext.GetColNameFromExpression(colExpress.Body.ToString()), val));
 }