C# 클래스 Models.Utilities.EntityFrameworkExtensions

파일 보기 프로젝트 열기: xby2/regular-expression-contest-website

공개 메소드들

메소드 설명
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