<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Комментарии: Метод SaveOrUpdate для Linq to SQL.</title>
	<atom:link href="http://usanov.net/157-metod-saveorupdate-dlya-linq-to-sql/feed" rel="self" type="application/rss+xml" />
	<link>http://usanov.net/157-metod-saveorupdate-dlya-linq-to-sql</link>
	<description>На иконку RSS можно нажать :)</description>
	<lastBuildDate>Thu, 09 Feb 2012 12:35:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Автор: futureFAvorit32</title>
		<link>http://usanov.net/157-metod-saveorupdate-dlya-linq-to-sql/comment-page-1#comment-19633</link>
		<dc:creator>futureFAvorit32</dc:creator>
		<pubDate>Sat, 09 Jul 2011 13:13:07 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/?p=157#comment-19633</guid>
		<description>Точнее:
customer.Value = &quot;v&quot;;
context.SubmitChanges();</description>
		<content:encoded><![CDATA[<p>Точнее:<br />
customer.Value = &#171;v&#187;;<br />
context.SubmitChanges();</p>
]]></content:encoded>
	</item>
	<item>
		<title>Автор: futureFAvorit32</title>
		<link>http://usanov.net/157-metod-saveorupdate-dlya-linq-to-sql/comment-page-1#comment-19632</link>
		<dc:creator>futureFAvorit32</dc:creator>
		<pubDate>Sat, 09 Jul 2011 13:10:31 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/?p=157#comment-19632</guid>
		<description>Прсто меняем значение и сохраняем изменения
public bool Update(tt_customer customer)
{
 context = new TimeTrakkerContext();

tt_customer Tcust = context.tt_customers.Single(c =&gt; c.Pk == customer.Pk);
 // context.tt_customers.Attach(customer, Tcust);
 context.SubmitChanges();
return true;
}</description>
		<content:encoded><![CDATA[<p>Прсто меняем значение и сохраняем изменения<br />
public bool Update(tt_customer customer)<br />
{<br />
 context = new TimeTrakkerContext();</p>
<p>tt_customer Tcust = context.tt_customers.Single(c =&gt; c.Pk == customer.Pk);<br />
 // context.tt_customers.Attach(customer, Tcust);<br />
 context.SubmitChanges();<br />
return true;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Автор: Leontinka</title>
		<link>http://usanov.net/157-metod-saveorupdate-dlya-linq-to-sql/comment-page-1#comment-421</link>
		<dc:creator>Leontinka</dc:creator>
		<pubDate>Tue, 02 Mar 2010 15:50:51 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/?p=157#comment-421</guid>
		<description>незнаю незнаю</description>
		<content:encoded><![CDATA[<p>незнаю незнаю</p>
]]></content:encoded>
	</item>
</channel>
</rss>

