Gentle 配置文件的使用(三)

ConcurrencyControl

true or false

Global on/off switch for concurrency control. Gentle ignores the ConcurrencyControl attribute when this is set to false.
同步控件同,如果为flaseGentle将会忽略同步控制

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).
Gentle
映射的元数据分析数据库(包括验证主定义),如果设置为FullGentle在第一次数据库访问时,会分析所有的表。如果设置为OnDemandGentle将一次仅分析一个表,设置为None则是禁止数据库分析实体。

DefaultProvider/Name

string

The unique name identifying the provider used for all accesses to the Broker class.
Broker类标识默认的provider

DefaultProvider/ConnectionString

string

The connection string to use for connecting to the default provider.
默认的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.
用于定义了Gentle可用的provder库及对应的dll的位置

Provider/Name

string

The unique name identifying the provider.
provider
的唯一标识

Provider/Assembly

string

The assembly containing the provider implementation.
provider
对应的dll所在的位置

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.

 

posted @ 2005-03-13 14:23  一根神棍研古今  阅读(1152)  评论(3编辑  收藏  举报
Web Counter