Hi,
we are in the process of building a Web API with SnapObjects. In PowerBuilder, we support either Sql Server or Oracle with the same table structure.
For number columns we use "int" in Sql Server and "number(38)" in Oracle. Unfortunately that leads to the following error when using SnapDevelop:
System.InvalidOperationException: Data type of mapped property on model is not compatiable, property: MZE
at SnapObjects.Data.DataModelBinding.BindModel(IList`1 columnSchema, IPocoModelMeta modelMeta, ITypeMapper mapper)
Is there any way we can influence the binding process?
Thanks,
Roland
There is no way to influence the binding process now.
If you don't want to modify the database, you can create another model using C# datatype decimal for Oracle number(38). But it's not easy to maintain code in this way.
Regards,
Logan