/// <summary> /// Creates a new DynamicSQLinq object for the specified table name. /// </summary> /// <param name="tableName"></param> /// <returns></returns> public static DynamicSQLinq Create(string tableName) { // initialize the Default ISqlDialect var dialect = DialectProvider.Create(); return(Create(tableName, dialect)); }
/// <summary> /// Creates a new SQLinqInsert object for the specified Object. /// </summary> /// <param name="data"></param> /// <returns></returns> public static SQLinqInsert <T> Insert <T>(T data) { // initialize the Default ISqlDialect var dialect = DialectProvider.Create(); return(Insert <T>(data, dialect)); }
/// <summary> /// Creates a new SQLinqInsert object for the specified Object and table name. /// </summary> /// <param name="data"></param> /// <param name="tableName"></param> /// <returns></returns> public static SQLinqUpdate <T> Update <T>(T data, string tableName) { // initialize the Default ISqlDialect var dialect = DialectProvider.Create(); return(Update <T>(data, tableName, dialect)); }
/// <summary> /// Creates a new SQLinq object for the Type of the object specified. /// </summary> /// <typeparam name="T"></typeparam> /// <param name="obj">The object that defines the Type to use for creating the SQLinq object instance for.</param> /// <returns></returns> public static SQLinq <T> Create <T>(T obj, string tableName) { // initialize the Default ISqlDialect var dialect = DialectProvider.Create(); return(Create <T>(obj, tableName, dialect)); }
public static SQLinqUpdate <T> ToSQLinqUpdate <T>(this T obj, string tableName = null, ISqlDialect dialect = null) { if (dialect == null) { dialect = DialectProvider.Create(); } return(SQLinqHelper.Update(obj, tableName, dialect)); }
public SQLinqInsertResult() : this(DialectProvider.Create()) { }
public SQLinqUpdate(T data) : this(data, DialectProvider.Create()) { }
public SQLinqInsert(T data) : this(data, DialectProvider.Create()) { }
/// <summary> /// Creates a new SQLinq object /// </summary> /// <param name="tableNameOverride">The database table name to use. This explicitly overrides any use of the SQLinqTable attribute.</param> public SQLinq(string tableNameOverride) : this(tableNameOverride, DialectProvider.Create()) { }
/// <summary> /// Creates a new SQLinq object /// </summary> public SQLinq() : this(DialectProvider.Create()) { }