C# 클래스 FluentLinqToSql.Mappings.ColumnMapping

Mapping class that represents a property mapped to a column.
상속: IColumnMapping
파일 보기 프로젝트 열기: JeremySkinner/FluentLinqToSql 1 사용 예제들

공개 메소드들

메소드 설명
AutoSync ( AutoSync autoSync ) : IColumnMapping

Specifies the AytoSync value for this property. AutoSync instructs the runtime how to retrieve the value after an insert or update operation.

ColumnMapping ( MemberInfo property ) : System.Collections.Generic

Creates a new instance of the ColumnMapping class.

DbGenerated ( ) : IColumnMapping

Marks the column as generated by the database.

DbType ( string dbType ) : IColumnMapping

Specifies the type of the column in the database.

Expression ( string expression ) : IColumnMapping

Specifies the expression that should be used to calculate the column.

Named ( string name ) : IColumnMapping

Specifies the name of the column to which the property should be mapped.

NotNull ( ) : IColumnMapping

Specifies that the column is not nullable.

PrimaryKey ( ) : IColumnMapping

Marks the column as part of the table's Primary Key.

SetAttribute ( string name, string value ) : IColumnMapping

Sets an attribute that will be generated in the XML.

Storage ( string fieldName ) : IColumnMapping

Specifies that Linq to Sql should bypass the public property and use the specified field directly.

ToXml ( ) : IEnumerable

Convers the column mapping to an Column element.

UpdateCheck ( UpdateCheck updateCheck ) : IColumnMapping

Specifies how Linq to Sql approaches the detection of optimistic concurrency conflicts.

The default is 'Always' unless the entity has a version field is defined.

Version ( ) : IColumnMapping

Marks the column as a database timestamp or version number.

메소드 상세

AutoSync() 공개 메소드

Specifies the AytoSync value for this property. AutoSync instructs the runtime how to retrieve the value after an insert or update operation.
public AutoSync ( AutoSync autoSync ) : IColumnMapping
autoSync AutoSync The autosync value
리턴 IColumnMapping

ColumnMapping() 공개 메소드

Creates a new instance of the ColumnMapping class.
public ColumnMapping ( MemberInfo property ) : System.Collections.Generic
property System.Reflection.MemberInfo The property that should be mapped
리턴 System.Collections.Generic

DbGenerated() 공개 메소드

Marks the column as generated by the database.
public DbGenerated ( ) : IColumnMapping
리턴 IColumnMapping

DbType() 공개 메소드

Specifies the type of the column in the database.
public DbType ( string dbType ) : IColumnMapping
dbType string Data type for the column
리턴 IColumnMapping

Expression() 공개 메소드

Specifies the expression that should be used to calculate the column.
public Expression ( string expression ) : IColumnMapping
expression string The expression that should be used to calculate the column
리턴 IColumnMapping

Named() 공개 메소드

Specifies the name of the column to which the property should be mapped.
public Named ( string name ) : IColumnMapping
name string The name
리턴 IColumnMapping

NotNull() 공개 메소드

Specifies that the column is not nullable.
public NotNull ( ) : IColumnMapping
리턴 IColumnMapping

PrimaryKey() 공개 메소드

Marks the column as part of the table's Primary Key.
public PrimaryKey ( ) : IColumnMapping
리턴 IColumnMapping

SetAttribute() 공개 메소드

Sets an attribute that will be generated in the XML.
public SetAttribute ( string name, string value ) : IColumnMapping
name string Name of attribute
value string value
리턴 IColumnMapping

Storage() 공개 메소드

Specifies that Linq to Sql should bypass the public property and use the specified field directly.
public Storage ( string fieldName ) : IColumnMapping
fieldName string Name of field that the column should be mapped to
리턴 IColumnMapping

ToXml() 공개 메소드

Convers the column mapping to an Column element.
public ToXml ( ) : IEnumerable
리턴 IEnumerable

UpdateCheck() 공개 메소드

Specifies how Linq to Sql approaches the detection of optimistic concurrency conflicts.
The default is 'Always' unless the entity has a version field is defined.
public UpdateCheck ( UpdateCheck updateCheck ) : IColumnMapping
updateCheck UpdateCheck The UpdateCheck value to use
리턴 IColumnMapping

Version() 공개 메소드

Marks the column as a database timestamp or version number.
public Version ( ) : IColumnMapping
리턴 IColumnMapping