Wahid Bitar
Wahid Bitar

Reputation: 14074

how to cast nullable tinyint in linq to sql?

I want to cast Nullable Tinyint column to int value in Linq to SQL ?

Upvotes: 0

Views: 978

Answers (1)

Prashant Lakhlani
Prashant Lakhlani

Reputation: 5806

Well By default, it is generated as Byte and not Integer, but you can go to code view and change the type, though that is not recommended, as whenever you drop something again from your database, the change you made will go away.

So I think working with byte is fine. isn't it?

Upvotes: 2

Related Questions