Default Value with LINQ To SQL

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
 
B

Bjørn Brox

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top