C# 클래스 Breeze.Entities.BreezeEntityBuilder

Builds server-side entities from JSON results sent by the Breeze client. This class is thread-safe and can be used to handle multiple requests.
파일 보기 프로젝트 열기: Breeze/breeze.server.net

공개 프로퍼티들

프로퍼티 타입 설명
jsonSerializer Newtonsoft.Json.JsonSerializer

공개 메소드들

메소드 설명
BreezeEntityBuilder ( List assemblies ) : Newtonsoft.Json

Create an instance using a list of assemblies to probe for entity types that match the entities from the client.

BreezeEntityBuilder ( string assemblyNameContains ) : Newtonsoft.Json

Create an instance using a string to match the assembly names. Matching assemblies will be probed for entity types that match the entities from the client.

BuildSaveWorkState ( Newtonsoft.Json.Linq.JObject saveBundle ) : SaveWorkState

Create a SaveWorkState from the JObject sent by the client.

BuildSaveWorkState ( List rawEntities ) : SaveWorkState

Create a SaveWorkState from the raw entities sent by the client.

보호된 메소드들

메소드 설명
BuildEntityGroups ( List rawEntities ) : List

Create EntityGroup objects from the raw entities sent by the client.

CreateEntityInfoFromJson ( dynamic jo, Type entityType ) : EntityInfo

Create an EntityInfo object from the raw client object

CreateJsonSerializerSettings ( ) : JsonSerializerSettings

Create breeze-friendly serializer settings

JsonToDictionary ( dynamic json ) : Object>.Dictionary

Convert the json object to a dictionary.

LookupEntityType ( string entityTypeName ) : Type

Get the C# type from the entity type name. Uses the modelAssemblies property to look up the entities.

메소드 상세

BreezeEntityBuilder() 공개 메소드

Create an instance using a list of assemblies to probe for entity types that match the entities from the client.
public BreezeEntityBuilder ( List assemblies ) : Newtonsoft.Json
assemblies List List of assemblies to probe for entity types
리턴 Newtonsoft.Json

BreezeEntityBuilder() 공개 메소드

Create an instance using a string to match the assembly names. Matching assemblies will be probed for entity types that match the entities from the client.
public BreezeEntityBuilder ( string assemblyNameContains ) : Newtonsoft.Json
assemblyNameContains string String contained in the assembly name
리턴 Newtonsoft.Json

BuildEntityGroups() 보호된 메소드

Create EntityGroup objects from the raw entities sent by the client.
protected BuildEntityGroups ( List rawEntities ) : List
rawEntities List Objects assumed to have an entityAspect property containing the entityTypeName
리턴 List

BuildSaveWorkState() 공개 메소드

Create a SaveWorkState from the JObject sent by the client.
public BuildSaveWorkState ( Newtonsoft.Json.Linq.JObject saveBundle ) : SaveWorkState
saveBundle Newtonsoft.Json.Linq.JObject JObject deserialized from Breeze client
리턴 SaveWorkState

BuildSaveWorkState() 공개 메소드

Create a SaveWorkState from the raw entities sent by the client.
public BuildSaveWorkState ( List rawEntities ) : SaveWorkState
rawEntities List Objects assumed to have an entityAspect property containing the entityTypeName
리턴 SaveWorkState

CreateEntityInfoFromJson() 보호된 정적인 메소드

Create an EntityInfo object from the raw client object
protected static CreateEntityInfoFromJson ( dynamic jo, Type entityType ) : EntityInfo
jo dynamic Object assumed to have an entityAspect property containing entityState and optional originalValuesMap and autoGeneratedKey
entityType System.Type Domain model object type to create
리턴 EntityInfo

CreateJsonSerializerSettings() 보호된 정적인 메소드

Create breeze-friendly serializer settings
protected static CreateJsonSerializerSettings ( ) : JsonSerializerSettings
리턴 Newtonsoft.Json.JsonSerializerSettings

JsonToDictionary() 보호된 정적인 메소드

Convert the json object to a dictionary.
protected static JsonToDictionary ( dynamic json ) : Object>.Dictionary
json dynamic Object assumed to be an IEnumerable containing JProperty objects
리턴 Object>.Dictionary

LookupEntityType() 보호된 메소드

Get the C# type from the entity type name. Uses the modelAssemblies property to look up the entities.
protected LookupEntityType ( string entityTypeName ) : Type
entityTypeName string Name in the form "Customer:#My.App.Namespace"
리턴 System.Type

프로퍼티 상세

jsonSerializer 공개적으로 정적으로 프로퍼티

public static JsonSerializer,Newtonsoft.Json jsonSerializer
리턴 Newtonsoft.Json.JsonSerializer