0
C# 코드에서 SP를 호출하고 있습니다. Everythig는 SP의 결과 유형을 변경하기 전까지 작업했습니다.저장 프로 시저의 Entity Framework Map 오류
일부 값은 Int32에서 String이고 일부 값은 Double에서 Decimal입니다.
이제 sp를 호출 할 때 또는 호출하는 동안이 오류가 발생합니다.
German:
Die Eigenschaft 'VBENr' bei 'Report_Result' konnte nicht auf einen 'Int32'-Wert festgelegt werden. Sie müssen diese Eigenschaft auf einen Nicht-NULL-Wert des Typs 'String' festlegen.
English:
The Property 'VBENr' in 'Report_Result' could not be set to a 'Int32' value. You must set this property to a non-null value of type 'String'.
디자이너가 이미 변경 되었기 때문에이 변경 작업을 수행 할 수 없습니다. 나는 디자이너가 그래서는 designer.cs도 값을 변경하고 제대로 작동하지 대해 뭔가를 읽어 * .edmx
예를 들어 VBENr 값 :
Edmx :
<Property Type="String" Name="VBENr" Nullable="false" />
Deisgner .cs : 정말 내가이 오류 메시지가 점점 이유를 잘 모릅니다
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.String VBENr
{
get
{
return _VBENr;
}
set
{
OnVBENrChanging(value);
ReportPropertyChanging("VBENr");
_VBENr = StructuralObject.SetValidValue(value, false);
ReportPropertyChanged("VBENr");
OnVBENrChanged();
}
}
private global::System.String _VBENr;
partial void OnVBENrChanging(global::System.String value);
partial void OnVBENrChanged();
..
는
마르쿠스는