tags:

views:

30

answers:

2

With LINQ To SQL, how/when does the process map your object/entity to your table?

Does it create its own ADO.NET code under the hood? Is it strongly typed?

Are the SQL parameters taking column size/type into account? (nvarchar 500, etc.)

A: 

When you create the DBML file, it generates standard .NET classes that are marked up with attributes. It is strongly-typed, and respects foreign-key constraints.

AgileJon
A: 

I cannot look at my current project but you could create a sample DBML file and look what it's doing under the hood?

Fredou