public static bool Exists <T>(this DataContextMoudle <T> dataContext) where T : new() { return(dataContext.Exists(dataContext.keyName, dataContext.GetKeyValue())); }
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)); }