C# 클래스 Breeze.ContextProvider.BreezeMetadataValidator

Validates entities using Breeze metadata.
파일 보기 프로젝트 열기: Breeze/breeze.server.net 1 사용 예제들

공개 메소드들

메소드 설명
BreezeMetadataValidator ( ContextProvider contextProvider, object>.IDictionary breezeMetadata ) : System

Create a new instance.

BreezeMetadataValidator ( ContextProvider contextProvider, object>.List structuralTypeList ) : System

Create a new instance.

ValidateEntities ( Dictionary saveMap, bool throwIfInvalid ) : List

Validate all the entities in the saveMap.

ValidateEntity ( EntityInfo entityInfo, List entityErrors ) : bool

Validates a single entity. Skips validation (returns true) if entity is marked Deleted.

비공개 메소드들

메소드 설명
BuildDataProperty ( object>.Dictionary data ) : DataProperty
BuildStructuralTypeMap ( object>.List structuralTypeList ) : StructuralType>.Dictionary
BuildValidator ( object>.Dictionary data ) : Validator

메소드 상세

BreezeMetadataValidator() 공개 메소드

Create a new instance.
public BreezeMetadataValidator ( ContextProvider contextProvider, object>.IDictionary breezeMetadata ) : System
contextProvider ContextProvider Used for getting entity keys for building EntityError objects.
breezeMetadata object>.IDictionary Contains breeze metadata. The structuralTypeList is extracted from it.
리턴 System

BreezeMetadataValidator() 공개 메소드

Create a new instance.
public BreezeMetadataValidator ( ContextProvider contextProvider, object>.List structuralTypeList ) : System
contextProvider ContextProvider Used for getting entity keys for building EntityError objects.
structuralTypeList object>.List Contains the validator information for properties of entity and complex types.
리턴 System

ValidateEntities() 공개 메소드

Validate all the entities in the saveMap.
Contains all the EntityErrors. Only thrown if throwIfInvalid is true.
public ValidateEntities ( Dictionary saveMap, bool throwIfInvalid ) : List
saveMap Dictionary Map of type to entities.
throwIfInvalid bool If true, throws an EntityErrorsException if any entity is invalid
리턴 List

ValidateEntity() 공개 메소드

Validates a single entity. Skips validation (returns true) if entity is marked Deleted.
public ValidateEntity ( EntityInfo entityInfo, List entityErrors ) : bool
entityInfo EntityInfo contains the entity to validate
entityErrors List An EntityError is added to this list for each error found in the entity
리턴 bool