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?
 

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

Injecting code into linq 16
LINQ: Related objects 2
LINQ 1
Question about LinQ (LinQ to Sql) 4
Linq to sql - Insert new rows 3
Linq Sum() Question 4
SQL to LINQ 1
WPF/LINQ to SQL DataContext Best Practices 1

Back
Top