Method | Description | |
---|---|---|
GetErrorMessage ( this model, string userFriendlyObjectName = null ) : string |
Returns a message that contains all the current errors.
|
|
GetValidationContextForObjectGraph ( this model ) : IValidationContext |
Gets the validation context for a complete object graph by also checking the properties and recursive
|
|
GetWarningMessage ( this model, string userFriendlyObjectName = null ) : string |
Returns a message that contains all the current warnings.
|
|
Save ( this model, |
Saves the specified model to the stream using the serializer.
|
|
Save ( this model, string filePath, ISerializer serializer ) : void |
Saves the specified model to the file using the specified serializer.
|
|
SaveAsXml ( this model, |
Saves as XML.
|
|
SaveAsXml ( this model, string filePath ) : void |
Saves the specified model to the file as xml.
|
Method | Description | |
---|---|---|
AddModelValidation ( this validationContext, IModel model, List |
||
GetListMessages ( IValidationContext validationContext, ValidationResultType validationResult ) : string |
Gets the list messages. This method is used to create a message string for field warnings or errors and business warnings or errors. Just pass the right dictionary and list to this method. |
public static GetErrorMessage ( this model, string userFriendlyObjectName = null ) : string | ||
model | this | The model base. |
userFriendlyObjectName | string | Name of the user friendly object. |
return | string |
public static GetValidationContextForObjectGraph ( this model ) : IValidationContext | ||
model | this | The model. |
return | IValidationContext |
public static GetWarningMessage ( this model, string userFriendlyObjectName = null ) : string | ||
model | this | The model base. |
userFriendlyObjectName | string | Name of the user friendly object. |
return | string |
public static Save ( this model, |
||
model | this | The model. |
stream | The stream. | |
serializer | ISerializer | The serializer. |
return | void |
public static Save ( this model, string filePath, ISerializer serializer ) : void | ||
model | this | The model. |
filePath | string | The file path. |
serializer | ISerializer | The serializer. |
return | void |
public static SaveAsXml ( this model, |
||
model | this | The model. |
stream | The stream. | |
return | void |
public static SaveAsXml ( this model, string filePath ) : void | ||
model | this | The model. |
filePath | string | The file path. |
return | void |