Esempio n. 1
0
        /// <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));
        }
Esempio n. 2
0
        /// <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));
        }
Esempio n. 3
0
        /// <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));
        }
Esempio n. 4
0
        /// <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));
        }
Esempio n. 5
0
 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));
 }
Esempio n. 6
0
 public SQLinqInsertResult()
     : this(DialectProvider.Create())
 {
 }
Esempio n. 7
0
 public SQLinqUpdate(T data)
     : this(data, DialectProvider.Create())
 {
 }
Esempio n. 8
0
 public SQLinqInsert(T data)
     : this(data, DialectProvider.Create())
 {
 }
Esempio n. 9
0
 /// <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())
 {
 }
Esempio n. 10
0
 /// <summary>
 /// Creates a new SQLinq object
 /// </summary>
 public SQLinq()
     : this(DialectProvider.Create())
 {
 }