Object structure display, different property name

I have a database field abCode

called statusCode

in an object that I want to map to a property called in an object. What changes are needed to the msl, csdl, ssdl and object layers to accomplish this?

Here are the relevant (I think) parts of the files:

In msl:

<ScalarProperty Name="abCode" ColumnName="abCode" />

      

In the csdl:

<Property Name="abCode" Type="Int32" />

      

In ssdl:

<Property Name="ParentId" Type="int" />

      

Thank.

0


source to share


1 answer


Through pure trial and error, the following changes are required:

In msl:

<ScalarProperty Name="statusCode " ColumnName="abCode" />

      



In the csdl:

<Property Name="statusCode " Type="Int32" />

      

And in the object layer the private property for abCode

has changed to StatusCode

.

+1


source







All Articles