Gentle 配置文件的使用(三)
ConcurrencyControl |
true or false |
Global on/off switch for concurrency control. Gentle ignores the ConcurrencyControl attribute when this is set to false.
|
MasterDefinition |
Attributes or XML |
This setting tells Gentle what to use as the primary source for metadata mapping information. XML is currently unused but will be supported in the future.
|
Analyzer/Level |
Full, OnDemand or None |
This setting controls how Gentle analyzes the database in order to obtain mapping metadata (both as supplement to and validation of the master definition). When set to Full, Gentle analyzes all tables on first database access. When set to OnDemand, Gentle analyzes one table at a time (the first time an object maps to the table). Setting this to None disables database analysis entirely (not recommended).
|
DefaultProvider/Name |
string |
The unique name identifying the provider used for all accesses to the Broker class.
|
DefaultProvider/ConnectionString |
string |
The connection string to use for connecting to the default provider.
|
Providers |
|
This section defindes the provider libraries available to Gentle. All libraries will be loaded, so you should uncomment those you do not intend to use.
|
Provider/Name |
string |
The unique name identifying the provider.
|
Provider/Assembly |
string |
The assembly containing the provider implementation.
|
NamespaceProviders |
|
This is a section marker containing a list of Namespace entries. Use this to force a certain provider and connection string to be used for classes in the designated namespaces. This setting takes precedene over the DefaultProvider, when present (it is entirely optional). |
Namespace/Namespace |
string |
The namespace in which the classes to match must reside. |
Namespace/Provider |
string |
The provider to use for classes in this namespace. |
Namespace/ConnectionString |
string |
The connection string to use for classes in this namespace. |