This question is locked. New answers and comments are not allowed.
I created two projects one for my service (asp.net website) and the second as a library with OpenAccess. When I try to expose the database using DataServices the service throws an error because some of my fields are Char datatype. I can change thee .generated.cs files to int16 however this is a hack and will have to be changed each time I regenerate. Please let me know if there is an alternative to this.
Error:
The exception message is 'The property 'CityType' on type 'Ekwipper.Grocery.Data.City' is not a valid property. Make sure that the type of the property is a public type and a supported primitive type or a entity type with a valid key or a complex type.'. See server logs for more details. The exception stack trace is:
Generated Property
Thanks in Advance!
Error:
The exception message is 'The property 'CityType' on type 'Ekwipper.Grocery.Data.City' is not a valid property. Make sure that the type of the property is a public type and a supported primitive type or a entity type with a valid key or a complex type.'. See server logs for more details. The exception stack trace is:
Generated Property
private
System.Nullable<System.Char> cityType;
[Column(
"cityType"
, OpenAccessType = OpenAccessType.Character, IsNullable =
true
, Length = 1, SqlType =
"char"
)]
[Storage(
"cityType"
)]
public
virtual
System.Nullable<System.Char> CityType
{
get
{
return
this
.cityType;
}
set
{
this
.cityType = value;
}
}
Thanks in Advance!