How to Save Record to Relational Tables With Linq To Sql?

I think you're looking for something like this hookedonlinq.com/LINQtoSql5MinuteOvervie....

I think you're looking for something like this. hookedonlinq.com/LINQtoSql5MinuteOvervie....

Start by defining a linq to sql mapping. Let's assume you called it 'LtoS'. Using it in code it will look something like this using(var ts = new TransactionScope()) using(var dc = new LtoSDataContext()) { var _article = new article { Title="someTitle", Content="someContent" }; dc.articles.

InsertOnSubmit(_article); var _tag = new tag { TagName="someTagName" }; dc.articles. InsertOnSubmit(_tag); var _contentTag = new contentTag { Tag = _tag, Article = _article }; dc.articles. InsertOnSubmit(_tag); dc.SubmitChanges(); } I have assume the contentTag is foreign key'ing into the other two tables.

See Transaction Scope.

I think you're looking for something like this.

Start by defining a linq to sql mapping. Let's assume you called it 'LtoS'. Using it in code it will look something like this.

How to Save Record to Relational Tables With Linq To Sql - Pastebin.com.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions