You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/GenericSQLEntityHandler/GenericSQLEntityHandler.cs
+44Lines changed: 44 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,50 @@ public GenericSQLEntityHandler(SqlConnection sqlConnection)
45
45
46
46
#region Save Methods
47
47
48
+
/// <summary>
49
+
/// Saves a single entity to the database.
50
+
/// </summary>
51
+
/// <param name="entity">The entity to save.</param>
52
+
/// <param name="table">The name of the table to save to.</param>
53
+
/// <param name="identityColumns">Only used for Update and InsertOrUpdate. Must contain the columns that identify the entity (Case sensitive).</param>
54
+
/// <param name="saveType">To save to or update the database, InsertOrUpdate handles a mixed list, but has a little overhead. FastInsert will not select the autogen column after an insert.</param>
55
+
/// <param name="autoGenIdColumn">If an autoincrement column is in the table, on insert it sets the new id to the inserted entitys corresponding property (Case sensitive).</param>
56
+
/// <returns>Returns true if the entity is saved/updated, else false.</returns>
/// <param name="entityList">List of entities to save.</param>
66
+
/// <param name="table">The name of the table to save to.</param>
67
+
/// <param name="identityColumns">Only used for Update and InsertOrUpdate. Must contain the columns that identify the entity (Case sensitive).</param>
68
+
/// <param name="saveType">To save or update the database, InsertOrUpdate handles a mixed list, but has a little overhead. FastInsert will not select the autogen column after an insert.</param>
69
+
/// <param name="autoGenIdColumn">If an autoincrement column is in the table, on insert it sets the new id to the inserted entitys corresponding property (Case sensitive).</param>
70
+
/// <returns>Returns true if all entities are saved/updated, else false.</returns>
/// <param name="entityList">List of entities to save.</param>
80
+
/// <param name="table">The name of the table to save to.</param>
81
+
/// <param name="identityColumns">Only used for Update and InsertOrUpdate. Must contain the columns that identify the entity (Case sensitive).</param>
82
+
/// <param name="saveType">To save or update the database, InsertOrUpdate handles a mixed list, but has a little overhead. FastInsert will not select the autogen column after an insert.</param>
83
+
/// <param name="autoGenIdColumn">If an autoincrement column is in the table, on insert it sets the new id to the inserted entitys corresponding property (Case sensitive).</param>
84
+
/// <param name="fetchAutoGenIdColumnOnUpdate">True if the auto gen id column should be fetched on update, on insert it already does</param>
85
+
/// <param name="propertiesToIgnore">Specify an array of property names, that should not be inserted/updated in the DB</param>
86
+
/// <returns>Returns true if all entities are saved/updated, else false.</returns>
0 commit comments