/// <summary> /// Replaces an object if exists or inserts a new row. (based on primary key) /// </summary> public InsertQueryType <T> Replace <T>(object obj) where T : new() { var insertQueryType = new InsertQueryType <T>(this); return(insertQueryType.Replace(obj)); }
/// <summary> /// Inserts an object into the database. /// </summary> /// <param name="obj">The object to insert.</param> /// <typeparam name="T">The object class.</typeparam> /// <returns>InsertQueryType</returns> public InsertQueryType <T> Insert <T>(object obj) where T : new() { var insertQueryType = new InsertQueryType <T>(this); return(insertQueryType.Insert(obj)); }