示例#1
0
 public static DataContextMoudle <T> WhereEq <T>(this DataContextMoudle <T> dataContext, Expression <Func <T, object> > colExpress, object val) where T : new()
 {
     return(dataContext.WhereEq(dataContext.GetColNameFromExpression(colExpress.Body.ToString()), val));
 }
示例#2
0
 public static bool Exists <T>(this DataContextMoudle <T> dataContext, string column, object val) where T : new()
 {
     return(dataContext.WhereEq(column, val).ExecuteEntity() != null);
 }