<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlserver.ro/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>LINQ</title><link>http://sqlserver.ro/forums/28/ShowForum.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Re: SubmitChanges() issues</title><link>http://sqlserver.ro/forums/thread/5554.aspx</link><pubDate>Thu, 04 Sep 2008 10:18:57 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:5554</guid><dc:creator>ignatandrei</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/5554.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=28&amp;PostID=5554</wfw:commentRss><description>DAta context - in mare se comporta ca o conexiune ce tine si "tabelele"&lt;br&gt;Ce exceptii iti da?&lt;br&gt;</description></item><item><title>SubmitChanges() issues</title><link>http://sqlserver.ro/forums/thread/5553.aspx</link><pubDate>Thu, 04 Sep 2008 10:11:48 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:5553</guid><dc:creator>crestinul</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/5553.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=28&amp;PostID=5553</wfw:commentRss><description>&lt;P&gt;Intr-un serviciu web trebuie sa inserez niste randuri intr-o tabela intr-un eveniment care se executa asyncrom.E vorba de evenimetul smtpclient.sentonterminate&lt;/P&gt;
&lt;P&gt;codul e ceva de genu:&lt;/P&gt;&lt;FONT color=#008000 size=2&gt;
&lt;P&gt;dbcontext.NewsletterHistories.InsertOnSubmit(new NewsletterHistory { CompanyID = (e.UserState as Company).ID, SendDate = DateTime.Now, Mesaj = "mesaj trimis cu succes", Succes = true });&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&amp;nbsp;dbcontext.SubmitChanges();&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#008000 size=2&gt;Problema e ca din cand in cand linia cu submitchanges imi ridica diferite exceptii asta seintampla la urmatoarele apeluri ale metodei -din prima data merge.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#008000 size=2&gt;Sunt la inceput in linq si nu inteleg prea bine conceputl de dbcontext imi puteti explica va rog cum sta treaba?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#008000 size=2&gt;Multumesc&lt;/P&gt;&lt;/FONT&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item></channel></rss>