C# Class Models.Utilities.EntityFrameworkExtensions

Show file Open project: xby2/regular-expression-contest-website

Public Methods

Method Description
ArePropertiesEqual ( this left, object right, List ignoreProperties = null ) : bool

Return true if left and right have the same properties and same values for those properties. (Ignoring any properties named in ignoreProperties)

CopyProperties ( this dest, object src, List foreignKeys = null, List ignoreEfModels = null ) : void

Copies the values of the properties of src to dest. Some logic is used to ignore certain fields.

Method Details

ArePropertiesEqual() public static method

Return true if left and right have the same properties and same values for those properties. (Ignoring any properties named in ignoreProperties)
public static ArePropertiesEqual ( this left, object right, List ignoreProperties = null ) : bool
left this
right object
ignoreProperties List Variable names of the parameters to ignore in the check
return bool

CopyProperties() public static method

Copies the values of the properties of src to dest. Some logic is used to ignore certain fields.
public static CopyProperties ( this dest, object src, List foreignKeys = null, List ignoreEfModels = null ) : void
dest this
src object
foreignKeys List
ignoreEfModels List
return void