Click or drag to resize
FieldPersistenceInfo Constructor (String, String, String, String, Boolean, String, Int32, Byte, Byte, Boolean, String, TypeConverter, Type)
CTor

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.2.0.0 (5.2.17.0403)
Syntax
public FieldPersistenceInfo(
	string sourceCatalogName,
	string sourceSchemaName,
	string sourceObjectName,
	string sourceColumnName,
	bool isSourceColumnNullable,
	string sourceColumnDbType,
	int sourceColumnMaxLength,
	byte sourceColumnScale,
	byte sourceColumnPrecision,
	bool isIdentity,
	string identityValueSequenceName,
	TypeConverter typeConverterToUse,
	Type actualDotNetType
)

Parameters

sourceCatalogName
Type: SystemString
The name of the catalog the sourceSchemaName is in.
sourceSchemaName
Type: SystemString
The name of the schema which holds SourceObjectName. Schema is used to generate SQL on the fly. A common schema name in SqlServer is f.e. 'dbo'.
sourceObjectName
Type: SystemString
The name of the source object which holds SourceColumnName. Can be a view or a table. Used to generate SQL on the fly.
sourceColumnName
Type: SystemString
The name of the corresponding column in a view or table for the corresponding entity/view field. This name is used to map a column in a resultset onto the entity field.
isSourceColumnNullable
Type: SystemBoolean
Flag if the Column mapped is nullable or not.
sourceColumnDbType
Type: SystemString
The type of the Column mapped onto the EntityField(2). The value stored here is the string representation of the enum value of the type, e.g. SqlDbType.Int will result in "Int"
sourceColumnMaxLength
Type: SystemInt32
The maximum length of the value for this column (string/binary data). Is ignored for columns which hold non-string and non-binary values.
sourceColumnScale
Type: SystemByte
The scale of the Column mapped onto the entityfield.
sourceColumnPrecision
Type: SystemByte
The precision of the Column mapped onto the entityfield.
isIdentity
Type: SystemBoolean
If set to true, the Dynamic Query Engine (DQE) will assume the field is an Identity field and will act accordingly (i.e.: as the target database handles Identity fields: SqlServer will generate a new value itself, Oracle wants to have a sequence input.
identityValueSequenceName
Type: SystemString
If isIdentity is set to true, this property has to be set to the name of the sequence which supplies the value for the column. On SqlServer this is @@IDENTITY or SCOPE_IDENTITY() and only used when the row is succesfully inserted, however on Oracle f.e. this value is used to specify a new value and to retrieve the new value. Is undefined when isIdentity is set to false.
typeConverterToUse
Type: System.ComponentModelTypeConverter
Type converter set when a conversion is required from the .NET type returned by the ADO.NET provider and the defined .NET type for this field.
actualDotNetType
Type: SystemType
The .NET type of the field in the DB. This value is used to convert a currentvalue back to this type using TypeConverterToUse.
See Also