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