forked from ThatRendle/Simple.Data
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAdoOptions.cs
More file actions
31 lines (27 loc) · 880 Bytes
/
AdoOptions.cs
File metadata and controls
31 lines (27 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
namespace Simple.Data.Ado
{
public class AdoOptions : OptionsBase
{
private readonly int _commandTimeout;
private readonly bool _identityInsert;
private bool _fireTriggersOnBulkInserts;
public AdoOptions(int commandTimeout = -1, bool identityInsert = false, bool fireTriggersOnBulkInserts = false)
{
_commandTimeout = commandTimeout;
_identityInsert = identityInsert;
_fireTriggersOnBulkInserts = fireTriggersOnBulkInserts;
}
public int CommandTimeout
{
get { return _commandTimeout; }
}
public bool IdentityInsert
{
get { return _identityInsert; }
}
public bool FireTriggersOnBulkInserts
{
get { return _fireTriggersOnBulkInserts; }
}
}
}