Default Value with LINQ To SQL

  • Thread starter Thread starter Gilles Nambert
  • Start date Start date
G

Gilles Nambert

Hi,

I have a default value in a nullable column, but i cant't get it. With
the IsDbGenerated=true attribute, it's OK if no value is supplied, but
the value is ignored when it is supplied. So it is not the right way.

So, i would be interrested to know how to do this trick if it is
possible ?

Thanks and best regards
Gilles
 
Gilles Nambert skrev:
Hi,

I have a default value in a nullable column, but i cant't get it. With
the IsDbGenerated=true attribute, it's OK if no value is supplied, but
the value is ignored when it is supplied. So it is not the right way.

So, i would be interrested to know how to do this trick if it is
possible ?

Thanks and best regards
Gilles
Since it is nullable, - when do you expect that a default value should
be used?
 
Back
Top