Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ public void InsertAll<TEntity>(IEnumerable<TEntity> items, DbConnection connecti
{
Configuration.Log("No provider could be found because the Connection didn't implement System.Data.EntityClient.EntityConnection");
Fallbacks.DefaultInsertAll(context, items);
return;
}

var connectionToUse = connection ?? con.StoreConnection;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public override bool Read()

public override int RecordsAffected
{
get { return this.Items.Count(); }
get { throw new NotImplementedException(); }
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void InsertItems<T>(IEnumerable<T> items, string schema, string tableName
}
using (SqlBulkCopy copy = new SqlBulkCopy(con))
{
copy.BatchSize = Math.Min(reader.RecordsAffected, batchSize ?? 15000); //default batch size
copy.BatchSize = batchSize ?? 15000; //default batch size
if (!string.IsNullOrWhiteSpace(schema))
{
copy.DestinationTableName = string.Format("[{0}].[{1}]", schema, tableName);
Expand Down