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.
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:
, OpenAccessType = OpenAccessType.Character, IsNullable =
, Length = 1, SqlType =
.cityType = value;
Thanks in Advance!