2013-06-12 3 views
-1

방금 ​​최신 버전의 breeze (1.3.5)로 업그레이드했습니다. 지금 작동하지 않는 코드가 있습니다. 오류 :업그레이드 후 Breeze의 메타 데이터 오류

/MyApi/PeopleOrg/Metadata에 대한 메타 데이터 가져 오기가 실패했습니다. 반환 메타 데이터를 처리 할 수 ​​없습니다 :

여기

는 메타 데이터를 얻을 수있는 호출에 의해 어떤 반환되는 널 (null)의 특성의 이름을 '읽을 수 없습니다 (이 포맷해야합니다) :

{ "스키마": { " "xmlns : d4p1": "http://schemas.microsoft.com/ado/2009/02/edm/annotation", "xmlns": "http://schemas.microsoft.com/ado/2009/11/edm" "네임 스페이스": "LeonardoMD.Server.Api.People.Org", "별칭": "자체", "d4p1 : UseStrongSpatialTypes" , "cSpaceOSpaceMapping": "[[\"LeonardoMD.Server.Api.People.Org.Person \ ", \"LeonardoMD.Server.Api.People.Org.Person \ "], [\"LeonardoMD.Server.Api. People.Org.PersonPhoneNumber \ ", \"LeonardoMD.Server.Api.People.Org.PersonPhoneNumber \ "], [\"LeonardoMD.Server.Api.People.Org.StaffMember \ ", \"LeonardoMD.Server.Api. People.Org.StaffMember \ "], [\"LeonardoMD.Server.Api.People.Org.Contact \ ", \"LeonardoMD.Server.Ap "{"name ":"person ","key ": {"propertyRef ": {"name ":"Id "}},"property " : "", "null": "false", "d4p1 : StoreGeneratedPattern": "Identity"}, { "name": "GlobalPersonId", " { "name": "UserId", "type": "Edm.Int32", "nullable": "true"}, { "name" "Invalid", "type": "Edm.Boolean", "nullable": "false"}, { "name": "PrefixId", "type": "Edm.Int32", "nullable": "true" } "," "" "," "" "" "" "" "" "" "" "" "" " true ","nullable ","true ","name ":"MiddleName ","type ":"Edm.String ","fixedLength ":"false ","maxLength ":"25 " : "true"}, { "name": "LastName", "type": "Edm.String", "fixedLength": "false", "maxLength": "35", "unicode" { "name": "SuffixId", "type": "Edm.Int32", "nullable": "true"}, { "name": "Email", "type": " "true", "nullable": "true"}, { "name": "Title", "type" : "Edm.String", "fixedLength": "fals "true", "nullable": "true"}, { "name": "BirthDate", "type": "Edm.DateTime", "nullable" : "true"}, { "name": "SSN", "type": "Edm.String", "fixedLength": "false", "maxLength": "20", "unicode" fixedLength ":"false ","maxLength ":"50 ","unicode ":"true ","null ":"true "}, {"이름 ":"별칭 " , "nullable": "true"}, { "name": "GenderId", "type": "Edm.Int32", "nullable": "true"}, { "name": "Employer" : "true", "nullable": "true"}, { "name": "Occupation", " { "name": "NPI", "null"} : "true", "nullable": "true"}, "고정 길이": "false", " , "type": "Edm.String", "fixedLength": "false", "maxLength": "50", "unicode": "true", "nullable": "true"}, { "name": " fixedLength ":"false ","maxLength ":"10 ","unicode ":"true ","nullable ":"true "}, {"name " : "50", "unicode": "true", "nullable": "true"}, { "최대 길이": " 이름 ":"TaxIdNumber ","유형 ":"Edm.String " "true", "nullable": "true"}, { "name": "TaxIdTypeId", "type": "Edm. { "name": "StateLicenseNumber", "StateLicenseNumber", "{{{{{{{{{{{{{{{{ { "name": "StateLicenseNumberStateId", "null"} : "true", "null": "true" "type": "Edm.Int32", "nullable": "true"}, { "name": "DEA", "type": "Edm.String", "fixedLength": "false", "maxLength" : "true", "nullable": "true"}, { "name": "CommercialNumber", "type": "Edm.String", "fixedLength": "false", " "true", "nullable": "true"}, { "name": "CommercialGroupNumber", "type": "Edm.String", "fixedLength": "false" , "maxLength": "30", "unicode": "true", "nullable": "true"}, { "name": "MedicareNumber", "type": "Edm.String", "fixedLength": " false ","maxLength ":"50 ","unicode ":"true ","nullable ":"true "}, {"name ":"MedicareGroupNumber ","type ":"Edm.String ","fixedLength " : "false", "maxLength": "30", "unicode": "true", "nullable": "true"}, { "n "50", "unicode": "true", "nullable": "true"}, "false", " { "name": "MedicaidGroupNumber", "type": "Edm.String", "fixedLength": "false", "maxLength": "30", "unicode": "true", "nullable": "true" } ","null ","null ":"false ","maxLength ":"50 ","unicode ":"true ","nullable " true ","nullable ","false ","maxLength ":"30 ","unicode ":"false ","fixed " : "true"}, { "name": "BlueCrossNumber", "type": "Edm."true", "nullable": "true"}, { "name": "BlueCrossGroupNumber", "type": "문자열", "fixedLength": "false", "maxLength": "50", "unicode" "true", "nullable": "true"}, { "name": "CHAMPUSNumber", "type" : "true", "nullable": "true"}, { "name": "Comments", " { "name": "Verified"} "" "" "" "" "" "" "" , "type": "Edm.Boolean", "nullable": "true"}, { "name": "CreateUserId", "type": "Edm.Int32", "nullable": "true"}, { " { "name": "ModifyUserId", "type": "Edm.Int32", "nullable": "이름": "CreateDate", "type": "Edm.DateTime", "nullable" true "}, {"name ":"ModifyDate ","type ":"Edm.DateTime ","nullable ":"false "}]"navigationProperty ": {"name ":"PhoneNumbers ","relationship " "PersonResponse", "PersonPhoneNumbers_Source", "toRole": "Person_PhoneNumbers_Target"}}, { "name": "PersonPhoneNumber", "key": { "propertyRef": "{ "}, {"name ":"Phon { "name": "PersonId", "type": "Edm.Int32", "nullable": "false"}, { "name": "PhoneTypeId", "type" ":"Edm.Int32 ","nullable ":"false "}, {"name ":"PhoneNumber ","type ":"Edm.String ","fixedLength ":"false ","maxLength ":"70 ","unicode ":"true ","nullable ":"true "}, {"name ":"Extension ","type ":"Edm.String ","fixedLength ":"false ","maxLength " "true", "null": "true"}, { "name": "OtherDescription", "type": "Edm.String", "fixedLength": "false", "maxLength ":"25 ","unicode ":"true ","nullable ":"true "}]}, {"name ":"StaffMember ","key ": {"propertyRef ": {"name ":"Id ""} ","속성 ": [{"이름 ":"ID ","유형 ":"Edm.Int32 ","nullable ":"거짓 ","d4p1 : StoreGeneratedPattern ":"신원 "}, {"이름 ":"PersonId ","type ":"Edm.Int32 ","nullable ":"false "}, {"name ":"비활성 ","유형 ":"Edm.Boolean ","nullable ":"true "" "name": "StaffMemberTypeId", "type": "Edm.Int32", "nullable": "true"}, { "name": "Provider", "type": "Edm.Boolean" "nullable": "true"}, { "name": "AllowScheduling", "type": "Edm.Boolean", "nullable": "true"}, { "name": "코디네이터", "type" "이자형 "null": "true"}, { "name": "MobileEmail", "type": "Edm.String", "fixedLength": "false", "maxLength": "80" { "이름": "EmailNotificationId", "유형": "Edm.Int32", "nullable": "true"}, { "name": " "maxLength": "1000", "unicode": "true", "nullable": "true"}, { "name"} "EmailSignature", "type": "Edm.String" : "true", "nullable": "true"}, { "false", "maxLength": "30", "unicode" "name": "HospiceEmployed", "type": "Edm.Boolean", "nullable": "true"}, { "name": "SignatureOnFile", "type": "Edm.Boolean", "nullable" true ","name ":"서명 ","유형 ":"Edm.String ","fixedLength ":"false ","maxLength ":"100 ","unicode ":"true " : "true"}, { "name": "BillingNameOld", "type": "Edm.String", "fixedLength": "false", "maxLength": "50", "unicode" { "name": "BillingPrefixId", "type": "null"} : "true"}, { "name": "BillingEntityTypeId", "type": "Edm.Int32" Edm.Int32 ","nullable ":"true "}, {"name ":"BillingFirstName ","type ":"Edm.String " , "fixedLength": "false", "maxLength": "25", "unicode": "true", "nullable": "true"}, { "name": "BillingMiddleName", "type": "Edm. {true} ","true "}, {"name ":"BillingLastName ","type ":"true ","false ","maxLength ":"25 ","unicode " "true", "nullable": "true"}, { "name": "BillingSuffixId", "type"} "Edm.String", "fixedLength": "false", "maxLength" : "", "null": "true"}, { "name": "BillingAddressLine1", "type": "Edm.String", "fixedLength": "false", "maxLength": "55" "true", "null": "true"}, { "name": "BillingAddressLine2", "type": "Edm.String", "fixedLength": "false", "maxLength": " 55 ","unicode ":"true ","nullable ":"true "}, {"name ":"BillingCity ","type ":"Edm.String ","fixedLength ":"false ","maxLength " : "true", "nullable": "true"}, { "name": "BillingStateId", "type": "Edm.Int32", "nullable": "true"}, { "name": "BillingState", "type": "Edm.String", "fixedLength": "false", "maxLength": "50", "unicode": "true", "nullable" }, { "name": "BillingPostalCode", "type": "Edm.String", "fixedLength": "false ","maxLength ":"15 ","unicode ":"true ","nullable ":"true "}, {"name ":"BillingCountryId ","type ":"Edm.Int32 ","nullable " "true", { "name": "BillingPhoneNumber", "type": "Edm.String", "fixedLength": "false", "maxLength": "70", "unicode": "true", "nullable ","true "}, {"name ":"BillingExtension ","type ":"Edm.String ","fixedLength ":"false ","maxLength ":"10 ","unicode ":"true " { "name": "PayToEntityTypeId", "type": "nullable": "true"}, { "name": "PayToSameAsBilling", "type": "Edm.Boolean" "true", { "name": "PayToPrefixId", "type": "Edm.Int32", "nullable": "true"}, { "name": "PayToFirstName" ","type ":"Edm.String ","fixedLength ":"false ","maxLength ":"25 ","unicode ":"true ","nullable ":"true "}, {"name " "true", "nullable": "true"}, { "name"} "PayToMiddleName", "type": "Edm.String", "fixedLength": "false", "maxLength": "25" ":"PayToLastName ","type ":"Edm.String ","fixedLength ":"false ","maxLength ":"35 ","unicode ":"true ","nullable ":"true "}, "name": "PayToSuffixId", "type": "Edm.","null ":"true "}, {"name ":"PayToAddressLine1 ","type ":"Edm.String ","fixedLength ":"false ","maxLength ":"55 ","unicode " "true", "nullable": "true"}, { "name": "PayToAddressLine2", "type": "Edm.String", "fixedLength": "false", "maxLength": "55" "true", "nullable": "true"}, { "name": "PayToCity", "type": "Edm.String", "fixedLength": "false", "maxLength": "30" , "null": "true"}, { "name": "PayToStateId", "type": "Edm.Int32", "nullable": "true"}, "unicode" : "50", "unicode": "true", "nullable": "true"}, { "PayToState", "type": "Edm.String", "fixedLength": "false", "maxLength" "maxLength": "15", "unicode": "true", "nullable": "true"}, "PayloadPostalCode", "Type": "Edm.String", "fixedLength" { "name": "PayToPhoneNumber", "type": "Edm.String", "fixedLength"} { "name": "PayToCountryId", "type" "false", "maxLength": "70", "unicode": "true", "nullable": "true"}, { "name": "PayToExtension", "type": "Edm.String" fixedLength ":"false ","maxLength ":"10 ","unicode ":"true ","nullable ":"true "}, {"name ":"P fixedLength ":"false ","maxLength ":"11 ","unicode ":"true ","nullable ":"true "}, {"name " "30", "unicode": "true", "nullable": "true"}, { "PayToTaxIdNumber", "type": "Edm.String", "fixedLength": "false", "maxLength" { "name": "VirtuosoEMRGroupId", "type": "Edm.Int32", "nullable": "true"} : "PayToTaxIdTypeId" true "}, {"name ":"CreateUserId ","type ":"Edm.Int32 ","null " "null": "true"}, { "name": "CreateDate", "type": "Edm.DateTime", "nullable": "true"}, { "name": "ModifyUserId" { "name": "ModifyDate", "type": "Edm.DateTime", "nullable": "true"}}}, { "name" : "속성": [{ "이름": "ID", "유형": "Edm.Int32", "ID"} "속성" { "name": "PersonId", "type": "Edm.Int32", "nullable": "false"}, {null} ":"false ","d4p1 : StoreGeneratedPattern " "Inactive", "type": "Edm.Boolean", "nullable": "true"}, { "name": "ContactTypeId", "type": "Edm.Int32" , "nullable": "true"}, { "name": "PrimaryPhysician", "type": "Edm.Boolean", "nullable": "true"}, { "name": "CreateUserId" { "name": "Create"} "{"} "{{{{{{{{{{{{{ ModifyUserId ","type ":"Edm.Int32 ","nullable ":"true "}, {"name ":"ModifyDate ","type ":"Edm.DateTime ","nullable ":"true "}] } ","연관성 ": {"이름 ":"Person_PhoneNumbers ","끝 ": [{"역할 ":"Person_PhoneNumbers_Source ","유형 ":"Edm.Self.Person ","다중성 ":"1 " "onDelete": { "action": "Cascade"}}, { "role": "Person_PhoneNumbers_Target", "type": "Edm.Self.PersonPhoneNumber", "multiplicity": "*"}], "referentialConstraint": { "role": "Person_PhoneNumbers_Target", "propertyRef": { "name"} { "role": "Person_PhoneNumbers_Source", "propertyRef" { "name": "People", "entityType": "Self.Person"}, { "name": "personIrgDbContext", "entitySet" ":"PersonPhoneNumbers ","entityType ":"Self.PersonPhoneNumber "}, {"name ":"StaffMembers ","entityType ":"Self.S "associationSet": { "name": "Person_PhoneNumbers", "association": "Self.Person_PhoneNumbers", "end"}, { "name": "Contacts", "entityType": "Self.Contact"}] ": [{"role ":"Person_PhoneNumbers_Source ","entitySet ":"People "}, {"역할 ":"Person_PhoneNumbers_Target ","entitySet ":"PersonPhoneNumbers "}]}}}}

이걸 일으킬 수 있니?

답변

0

문제를 해결하는 방법을 알았지 만 필요한 이유가 무엇인지 알 수 없습니다. 나는 Person 클래스와 PersonPhoneNumber 클래스 사이의 연관을 처리하는 동안 바람 코드가 실패하고있는 것을 발견했습니다. 필자는 Person 클래스의 PhoneNumbers 속성에 엔티티 프레임 워크 [InverseProperty ("Phone")] 속성을 추가하고 PersonPhoneNumber 클래스의 PersonId 속성에 ForiegnKey ("Phone") 지정을 추가하고 Phone 유형의 새 Phone 속성을 추가했습니다 PersonPhoneNumber 클래스에 있습니다.

수업 내용을 추측 할 것입니다. 엔티티 프레임 워크 모델에서 두 클래스의 연결 끝점을 명시 적으로 정의해야합니다.

0

가져 오는 동안 오류가 발생하면 가져 오기중인 메타 데이터가 이전 버전의 Breeze를 사용하여 내보내 졌습니까? 내가 묻는 이유는 다양한 이유로 메타 데이터가 변경 될 수 있다는 것입니다. 하나는 NoSQL에 대한 지원을 추가하고 새로운 메타 데이터 형식을 사용한다는 것입니다.

위의 경우가 아니라면 문제와 관련된 두 엔티티의 정의와 가져 오기/내보내기 코드를 제공 할 수 있습니까? 이 방법으로 문제를 재현하고 버그라고 판단되면 수정 작업을 시도 할 수 있습니다.

감사합니다.

관련 문제