Presisting attributes destroyed by SQLMetal

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andrus

    Presisting attributes destroyed by SQLMetal

    I use sqlmetal to generate cs code.

    sql metal generates property attributes in form

    [Column()]
    public string Floorlimit { ....

    I need to specify that this property is discriminator. Since C# does not
    support partial properties, I added manually to generated code

    [Column(IsDiscri minator=true)]

    After I re-run sqlmetal, all IsDiscriminator values are lost.

    How to set IsDiscriminator property so that this value persist after cs
    code is re-generated by sqlmetal ?

    Andrus.



Working...