Sign in | Join
Rate It (1)
Last post 09-03-2009 12:46 PM by Crayons. 5 replies.
Sort Posts: Oldest to newest Newest to oldest
In http://www.asp.net/learn/data-access/tutorial-01-cs.aspx it says to create a typed data set file which will act as a DAL...If im using LinQ to SQL do I still need to use typed data set's or does a Link to SQL item/app code insertion act as a DAL? I guess what im trying to figure out is: Is LinQ to SQL a DAL, BLL, or both?
Its DAL
Your LTS queries are converted, at runtime, into SQL statements that get executed against the database. You write your statements as though you were using business 'objects', so that makes it... a DAL, sort of. It's a RAD DAL. How about that?
Quick question regarding the LINQ to SQL, when you say SQL statements do you mean the SQL SPROC'S? If the queries that get converted at runtime are the actual sprocs how would I configure a gridview to pull that specific Sproc?
By SQL statements, I mean normal, inline SQL statements.
In Linq to Sql, to call a stored procedure, you have to import the SP as a function. Then you call it as part of your LTS queries.
Awsome!
thanks for the info and the link! :)