示例#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));
        }
示例#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));
        }
示例#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));
        }
示例#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));
        }
示例#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));
 }
示例#6
0
 public SQLinqInsertResult()
     : this(DialectProvider.Create())
 {
 }
示例#7
0
 public SQLinqUpdate(T data)
     : this(data, DialectProvider.Create())
 {
 }
示例#8
0
 public SQLinqInsert(T data)
     : this(data, DialectProvider.Create())
 {
 }
示例#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())
 {
 }
示例#10
0
 /// <summary>
 /// Creates a new SQLinq object
 /// </summary>
 public SQLinq()
     : this(DialectProvider.Create())
 {
 }