C# Класс Models.Utilities.EntityFrameworkExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

ArePropertiesEqual() публичный статический Метод

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
Результат bool

CopyProperties() публичный статический Метод

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
Результат void