Click or drag to resize
EF Visual Editor

ModelAttributeIsValidInitialValue Method

Tests if the InitialValue property is valid for the type indicated

Namespace:  Sawczyn.EFDesigner.EFModel
Assembly:  Sawczyn.EFDesigner.EFModel.Dsl (in Sawczyn.EFDesigner.EFModel.Dsl.dll) Version: 2.0.5.3 (2.0.5.3)
Syntax
public bool IsValidInitialValue(
	string typeName = null,
	string initialValue = null
)
Request Example View Source

Parameters

typeName (Optional)
Type: SystemString
Name of type to test. If typeName is null, Type property will be used. If initialValue is null, InitialValue property will be used
initialValue (Optional)
Type: SystemString
Initial value to test

Return Value

Type: Boolean
true if InitialValue is a valid value for the type, or if initialValue is null or empty
See Also