<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Blogul lui Lucică &#187; Software</title>
	<atom:link href="http://www.chiriac.ro/category/software/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chiriac.ro</link>
	<description>Să aberăm frumos</description>
	<lastBuildDate>Fri, 11 Nov 2011 10:40:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Crystal Reports &#8211; proceduri stocate cu sql adhoc</title>
		<link>http://www.chiriac.ro/2011/09/13/crystal-reports-proceduri-stocate-cu-sql-adhoc/</link>
		<comments>http://www.chiriac.ro/2011/09/13/crystal-reports-proceduri-stocate-cu-sql-adhoc/#comments</comments>
		<pubDate>Tue, 13 Sep 2011 13:18:43 +0000</pubDate>
		<dc:creator>Lucian Chiriac</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.chiriac.ro/?p=288</guid>
		<description><![CDATA[Bun. Deci esti nefericitul cistigator al loteriei: &#8220;Cine face raportul care arata rata pe ecran&#8221; si esti obligat sa folosesti o constructie de SQL pentru ca nu stii exact ce parametri o sa vina, din ce tabele o sa iei datele, etc. La un moment dat se declara variabila @sqlDeExecutat de tip varchar(). In mod [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.chiriac.ro/wp-content/uploads/2011/09/CAR.png"><img class="alignleft size-medium wp-image-289" title="CAR" src="http://www.chiriac.ro/wp-content/uploads/2011/09/CAR-300x127.png" alt="" width="300" height="127" /></a>Bun. Deci esti nefericitul cistigator al loteriei: &#8220;Cine face raportul care arata rata pe ecran&#8221; si esti obligat sa folosesti o constructie de SQL pentru ca nu stii exact ce parametri o sa vina, din ce tabele o sa iei datele, etc.</p>
<p>La un moment dat se declara variabila @sqlDeExecutat de tip varchar(). In mod normal iti aloci loc suficient in dimensiunea variabilei ca deh&#8230; sa nu consumi, etc.</p>
<p>Dar ce te faci cind raportul crapa iar tot ce gasesti in SQL Profiler arata 100% ok? Daca iei procedura stocata si o executi de mina, totul e in regula, raportul e bine definit, doar ca nu merge cu parametri mai lungi pasati la procedura stocata&#8230; iar parametrii se incadreaza in dimensiunile declarate!</p>
<p>Mai mult decit atit, variabila @sqlDeExecutat nu contine un sir mai mare decit cel declarat de tine&#8230; Deci.. frack it! Declara @sqlDeExecutat varchar(max) si hai noroc.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chiriac.ro/2011/09/13/crystal-reports-proceduri-stocate-cu-sql-adhoc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apeluri Ajax lungi in IE si mesaje de &#8230; loading &#8230;</title>
		<link>http://www.chiriac.ro/2009/12/29/apeluri-ajax-lungi-in-ie-si-mesaje-de-loading/</link>
		<comments>http://www.chiriac.ro/2009/12/29/apeluri-ajax-lungi-in-ie-si-mesaje-de-loading/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 10:25:16 +0000</pubDate>
		<dc:creator>Lucian Chiriac</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.chiriac.ro/?p=253</guid>
		<description><![CDATA[Recent am avut o problema cu un client care avea o baza de date foarte mare iar functionalitatea care aducea o lista de elemente dura mai mult de 5-10 secunde. In mod normal, se pune un mesaj de &#8220;stati pe loc, ca lucrez&#8221;, &#8220;loading&#8221; ceva&#8230; Partea proasta la IE este ca de exemplu pui un [...]]]></description>
			<content:encoded><![CDATA[<p>Recent am avut o problema cu un client care avea o baza de date foarte mare iar functionalitatea care aducea o lista de elemente dura mai mult de 5-10 secunde. In mod normal, se pune un mesaj de &#8220;stati pe loc, ca lucrez&#8221;, &#8220;loading&#8221; ceva&#8230;</p>
<p>Partea proasta la IE este ca de exemplu pui un DIV frumos si colorar sa se afiseze, va sta ca boul sa se termine requestul Ajax, moment in care nu ma mai intereseaza, pentru ca eu deja vreau sa il ascund.</p>
<p>O solutie temporara, in lipsa de altceva mai bun, este sa pornesti requestul intr-o functie setTimeout() ca sa dai timp la IE sa isi afiseze DIVul, mesajul, etc si peste 500 de milisecunde sa dai drumul la request. Ceva de genul:</p>
<p><span style="font-size: x-small;"><strong>waitPlease(<span style="color: #a31515; font-size: x-small;"><span style="color: #a31515; font-size: x-small;">&#8216;Loading stuff&#8230;&#8217;</span></span><span style="font-size: x-small;">);</span></strong></span></p>
<p><span style="font-size: x-small;"><strong>setTimeout(</strong></span><strong><span style="color: #a31515; font-size: x-small;"><span style="color: #a31515; font-size: x-small;">&#8220;executeStuffSearch()&#8221;</span></span><span style="font-size: x-small;">, 500);</span></strong></p>
<p>Evident, ca daca in divul respectiv e o imagine cu gif animat (o rotita de exemplu) aia va sta inghetata tot timpul cit IE asteapta sa-i vina raspunsul la request. Btw, mentionez ca requestul este sincron&#8230;</p>
<p>Alte idei?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chiriac.ro/2009/12/29/apeluri-ajax-lungi-in-ie-si-mesaje-de-loading/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Works with Windows Server 2008</title>
		<link>http://www.chiriac.ro/2009/10/26/works-with-windows-server-2008/</link>
		<comments>http://www.chiriac.ro/2009/10/26/works-with-windows-server-2008/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 21:40:10 +0000</pubDate>
		<dc:creator>Lucian Chiriac</dc:creator>
				<category><![CDATA[Diverse]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.chiriac.ro/?p=246</guid>
		<description><![CDATA[Se da o aplicatie careia vrei sa-i testezi compatibilitatea cu W2008R2. Trebuie sa o instalezi pe versiunea x64Enterprise intr-o masina virtuala Hyper-V altfel testul esueaza. Am aflat asta &#8220;the hard way&#8221; dupa ce am facut 2 masini virtuale cu vmware, ca evident ca nu am citit manualul Asa ca mai stau in pic&#8230;]]></description>
			<content:encoded><![CDATA[<p>Se da o aplicatie careia vrei sa-i testezi compatibilitatea cu W2008R2. Trebuie sa o instalezi pe versiunea x64Enterprise intr-o masina virtuala Hyper-V altfel testul esueaza.<br />
Am aflat asta &#8220;the hard way&#8221; dupa ce am facut 2 masini virtuale cu vmware, ca evident ca nu am citit manualul <img src='http://www.chiriac.ro/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Asa ca mai stau in pic&#8230; </p>
]]></content:encoded>
			<wfw:commentRss>http://www.chiriac.ro/2009/10/26/works-with-windows-server-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Persistenţă în web.config</title>
		<link>http://www.chiriac.ro/2009/01/20/persistenta-in-webconfig/</link>
		<comments>http://www.chiriac.ro/2009/01/20/persistenta-in-webconfig/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 13:11:23 +0000</pubDate>
		<dc:creator>Lucian Chiriac</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.chiriac.ro/?p=184</guid>
		<description><![CDATA[Se dă o aplicaţie la care trebuie sa faci un kit de instalare. Toate bune şi frumoase până când trebuie să automatizezi setările din web.config, că doar nu o să-l rogi frumos pe webadmin să facă configurările de mână. Drept urmare, trebuie să faci un CustomInstaller care deschide web.configu, scrie ce e de scris si [...]]]></description>
			<content:encoded><![CDATA[<p>Se dă o aplicaţie la care trebuie sa faci un kit de instalare. Toate bune şi frumoase până când trebuie să automatizezi setările din web.config, că doar nu o să-l rogi frumos pe webadmin să facă configurările de mână.</p>
<p>Drept urmare, trebuie să faci un CustomInstaller care deschide web.configu, scrie ce e de scris si apoi inchide (nu înainte de a salva).</p>
<p>Ca să se persiste modificările tale trebuie sa ştergi respectiva configurare din instanţa pe care o manipulezi şi să oadaugi din nou cu setările dorite. Astfel, daca ai ceva prin appSettings, se face în felul următor:</p>
<p>AppSettingsSection appsettings;<br />
appsettings = (AppSettingsSection)config.GetSection(&#8220;appSettings&#8221;);<br />
appsettings.Settings.Clear();<br />
appsettings.Settings.Add(&#8220;MailFrom&#8221;, mailAddress);<br />
appsettings.Settings.Add(&#8220;MailUser&#8221;, mailFrom);</p>
<p>&#8230; şi aşa mai departe</p>
<p>Sau dacă ai un ApplicationSettingsGroup mai ciudat, ar fi bine să ştergi fiecare SettingElement şi apoi să-l adaugi corespunzător.</p>
<p>de exemplu:</p>
<p>appsettings = (ApplicationSettingsGroup)config.GetSectionGroup(&#8220;applicationSettings&#8221;);<br />
ClientSettingsSection css = (ClientSettingsSection)appsettings.Sections[0];<br />
ConfigurationElement[] sett = new ConfigurationElement[css.Settings.Count];<br />
css.Settings.CopyTo(sett, 0);<br />
css.Settings.Clear();<br />
foreach (SettingElement se in sett)<br />
{<br />
string wsLocation = se.Value.ValueXml.InnerText;<br />
wsLocation = wsLocation.Replace(&#8220;localhost&#8221;, webServicesurl);<br />
XmlNode node = se.Value.ValueXml.ChildNodes[0];<br />
node.Value = wsLocation;<br />
css.Settings.Add(se);<br />
}</p>
<p>&#8230; că altfel înnebuneşti două ore căutând permisiuni pe fişiere, etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chiriac.ro/2009/01/20/persistenta-in-webconfig/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mic îndrumar de LEFT JOIN cu LINQ</title>
		<link>http://www.chiriac.ro/2008/11/12/mic-indrumar-de-left-join-cu-linq/</link>
		<comments>http://www.chiriac.ro/2008/11/12/mic-indrumar-de-left-join-cu-linq/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 08:38:04 +0000</pubDate>
		<dc:creator>Lucian Chiriac</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Utile]]></category>
		<category><![CDATA[LINQ]]></category>

		<guid isPermaLink="false">http://www.chiriac.ro/?p=141</guid>
		<description><![CDATA[Nu sunt rare cazurile în care avem nevoie de un LEFT JOIN prin selecturile de la casa omului şi deoarece LINQ nu are operator LEFT JOIN dedicat, trebuie rezovată problema într-un fel… Deci, dacă ai nevoie de un SELECT de genul: SELECT t0.ID_REC_PROJECT_TARGET AS _targetId, t0.ID_PERSON AS _personId, t0.ID_PROJECT AS _projectId, t5.COMPANY_NAME AS _company, t4.POSITION [...]]]></description>
			<content:encoded><![CDATA[<p><!--[endif]--></p>
<p class="MsoNormal">Nu sunt rare cazurile în care avem nevoie de un LEFT JOIN prin selecturile de la casa omului şi deoarece LINQ nu are operator LEFT JOIN dedicat, trebuie rezovată problema într-un fel…</p>
<p class="MsoNormal">Deci, dacă ai nevoie de un SELECT de genul:</p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">SELECT</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">t0<span style="color: gray;">.</span>ID_REC_PROJECT_TARGET <span style="color: blue;">AS</span> _targetId<span style="color: gray;">,</span> t0<span style="color: gray;">.</span>ID_PERSON <span style="color: blue;">AS</span> _personId<span style="color: gray;">,</span> t0<span style="color: gray;">.</span>ID_PROJECT <span style="color: blue;">AS</span> _projectId<span style="color: gray;">,</span> t5<span style="color: gray;">.</span>COMPANY_NAME <span style="color: blue;">AS</span> _company<span style="color: gray;">,</span> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">t4<span style="color: gray;">.</span>POSITION <span style="color: blue;">AS</span> _position<span style="color: gray;">,</span> t2<span style="color: gray;">.</span>VALUE <span style="color: blue;">AS</span> _priority<span style="color: gray;">,</span> t3<span style="color: gray;">.</span>VALUE <span style="color: blue;">AS</span> _source<span style="color: gray;">,</span> t0<span style="color: gray;">.</span>COMMENT <span style="color: blue;">AS</span> _comments</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">FROM</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">dbo<span style="color: gray;">.</span>REC_PROJECT_TARGET <span style="color: blue;">AS</span> t0</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: gray;">INNER</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> <span style="color: gray;">JOIN</span> dbo<span style="color: gray;">.</span>PERSON <span style="color: blue;">AS</span> t1 <span style="color: blue;">ON</span> t0<span style="color: gray;">.</span>ID_PERSON <span style="color: gray;">=</span> t1<span style="color: gray;">.</span>ID_PERSON</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: gray;">INNER</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> <span style="color: gray;">JOIN</span> dbo<span style="color: gray;">.</span>REC_LOOKUP <span style="color: blue;">AS</span> t2 <span style="color: blue;">ON</span> t0<span style="color: gray;">.</span>ID_PRIORITY <span style="color: gray;">=</span> t2<span style="color: gray;">.</span>ID_REC_LOOKUP</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: gray;">INNER</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> <span style="color: gray;">JOIN</span> dbo<span style="color: gray;">.</span>REC_LOOKUP <span style="color: blue;">AS</span> t3 <span style="color: blue;">ON</span> t0<span style="color: gray;">.</span>ID_SOURCE <span style="color: gray;">=</span> t3<span style="color: gray;">.</span>ID_REC_LOOKUP</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: gray;">LEFT</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> <span style="color: gray;">OUTER</span> <span style="color: gray;">JOIN</span> dbo<span style="color: gray;">.</span>PERSON_WORKEXPERIENCE <span style="color: blue;">AS</span> t4 <span style="color: blue;">ON</span> <span style="color: gray;">(</span>t4<span style="color: gray;">.</span>IS_PRESENT <span style="color: gray;">=</span> 1<span style="color: gray;">)</span> <span style="color: gray;">AND</span> <span style="color: gray;">(</span>t1<span style="color: gray;">.</span>ID_PERSON <span style="color: gray;">=</span> t4<span style="color: gray;">.</span>ID_PERSON<span style="color: gray;">)</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: gray;">LEFT</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> <span style="color: gray;">OUTER</span> <span style="color: gray;">JOIN</span> dbo<span style="color: gray;">.</span>COMPANY <span style="color: blue;">AS</span> t5 <span style="color: blue;">ON</span> t4<span style="color: gray;">.</span>ID_COMPANY <span style="color: gray;">=</span> <span style="color: gray;">(</span>t5<span style="color: gray;">.</span>ID_COMPANY<span style="color: gray;">)</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;">
<p class="MsoNormal"><span lang="RO"><span> </span></span></p>
<p class="MsoNormal"><span lang="RO">El se traduce în LINQ în felul următor:</span></p>
<p class="MsoNormal">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">from</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> t <span style="color: gray;">in</span> dac<span style="color: gray;">.</span>REC_PROJECT_TARGETs</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: gray;">join</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> p <span style="color: gray;">in</span> dac<span style="color: gray;">.</span>PERSONs <span style="color: blue;">on</span> t<span style="color: gray;">.</span>ID_PERSON equals p<span style="color: gray;">.</span>ID_PERSON</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: gray;">join</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> lp <span style="color: gray;">in</span> dac<span style="color: gray;">.</span>REC_LOOKUPs <span style="color: blue;">on</span> t<span style="color: gray;">.</span>ID_PRIORITY equals lp<span style="color: gray;">.</span>ID_REC_LOOKUP</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: gray;">join</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> ls <span style="color: gray;">in</span> dac<span style="color: gray;">.</span>REC_LOOKUPs <span style="color: blue;">on</span> t<span style="color: gray;">.</span>ID_SOURCE equals ls<span style="color: gray;">.</span>ID_REC_LOOKUP</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: gray;">join</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> wp <span style="color: gray;">in</span> dac<span style="color: gray;">.</span>PERSON_WORKEXPERIENCEs <span style="color: blue;">on</span> p<span style="color: gray;">.</span>ID_PERSON equals wp<span style="color: gray;">.</span>ID_PERSON <span style="color: blue;">into</span> wpl</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">from</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> wpo <span style="color: gray;">in</span> wpl<span style="color: gray;">.</span>Where<span style="color: gray;">(</span>wpo <span style="color: gray;">=&gt;</span> wpo<span style="color: gray;">.</span>IS_PRESENT<span style="color: gray;">).</span>DefaultIfEmpty<span style="color: gray;">()</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: gray;">join</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> co <span style="color: gray;">in</span> dac<span style="color: gray;">.</span>COMPANies <span style="color: blue;">on</span> wpo<span style="color: gray;">.</span>ID_COMPANY equals co<span style="color: gray;">.</span>ID_COMPANY <span style="color: blue;">into</span> cpu</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">from</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> c <span style="color: gray;">in</span> cpu<span style="color: gray;">.</span>DefaultIfEmpty<span style="color: gray;">()</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">where</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> t<span style="color: gray;">.</span>ID_PROJECT <span style="color: gray;">==</span> projectId<span> </span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">select</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> new <span style="color: gray;">{</span>t<span style="color: gray;">.</span>ID_REC_PROJECT_TARGET<span style="color: gray;">,</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><span> </span>t<span style="color: gray;">.</span>ID_PERSON<span style="color: gray;">,</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><span> </span>t<span style="color: gray;">.</span>ID_PROJECT<span style="color: gray;">,</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><span> </span>c<span style="color: gray;">.</span>COMPANY_NAME<span style="color: gray;">,</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><span> </span>wpo<span style="color: gray;">.</span>POSITION<span style="color: gray;">,</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><span> </span>lp<span style="color: gray;">.</span>VALUE<span style="color: gray;">,</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><span> </span><span> </span>ls<span style="color: gray;">.</span>VALUE<span style="color: gray;">,</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><span> </span>t<span style="color: gray;">.</span>COMMENT}</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span lang="RO">Partea interesantă (cea cu LEFT JOIN in LINQ) este următoarea:</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: gray;">LEFT</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> <span style="color: gray;">OUTER</span> <span style="color: gray;">JOIN</span> dbo<span style="color: gray;">.</span>PERSON_WORKEXPERIENCE <span style="color: blue;">AS</span> t4 <span style="color: blue;">ON</span> <span style="color: gray;">(</span>t4<span style="color: gray;">.</span>IS_PRESENT <span style="color: gray;">=</span> 1<span style="color: gray;">)</span> <span style="color: gray;">AND</span> <span style="color: gray;">(</span>t1<span style="color: gray;">.</span>ID_PERSON <span style="color: gray;">=</span> t4<span style="color: gray;">.</span>ID_PERSON<span style="color: gray;">)</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span lang="RO">se traduce:</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: gray;">join</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> wp <span style="color: gray;">in</span> dac<span style="color: gray;">.</span>PERSON_WORKEXPERIENCEs <span style="color: blue;">on</span> p<span style="color: gray;">.</span>ID_PERSON equals wp<span style="color: gray;">.</span>ID_PERSON <span style="color: blue;">into</span> wpl <span style="color: blue;">from</span> wpo <span style="color: gray;">in</span> wpl<span style="color: gray;">.</span>Where<span style="color: gray;">(</span>wpo <span style="color: gray;">=&gt;</span> wpo<span style="color: gray;">.</span>IS_PRESENT<span style="color: gray;">).</span>DefaultIfEmpty<span style="color: gray;">()</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span lang="RO"> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span lang="RO">Acuma, dacă vrem să complicăm lucrurile puţin, am nevoie sa imi aduc doar acele date care nu au referinte prin alte tabele, adică:</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span lang="RO"> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">SELECT</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">t0<span style="color: gray;">.</span>ID_REC_PROJECT_TARGET <span style="color: blue;">AS</span> _targetId<span style="color: gray;">,</span> t0<span style="color: gray;">.</span>ID_PERSON <span style="color: blue;">AS</span> _personId<span style="color: gray;">,</span> t0<span style="color: gray;">.</span>ID_PROJECT <span style="color: blue;">AS</span> _projectId<span style="color: gray;">,</span> t5<span style="color: gray;">.</span>COMPANY_NAME <span style="color: blue;">AS</span> _company<span style="color: gray;">,</span> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">t4<span style="color: gray;">.</span>POSITION <span style="color: blue;">AS</span> _position<span style="color: gray;">,</span> t2<span style="color: gray;">.</span>VALUE <span style="color: blue;">AS</span> _priority<span style="color: gray;">,</span> t3<span style="color: gray;">.</span>VALUE <span style="color: blue;">AS</span> _source<span style="color: gray;">,</span> t0<span style="color: gray;">.</span>COMMENT <span style="color: blue;">AS</span> _comments</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">FROM</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> dbo<span style="color: gray;">.</span>REC_PROJECT_TARGET <span style="color: blue;">AS</span> t0</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: gray;">INNER</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> <span style="color: gray;">JOIN</span> dbo<span style="color: gray;">.</span>PERSON <span style="color: blue;">AS</span> t1 <span style="color: blue;">ON</span> t0<span style="color: gray;">.</span>ID_PERSON <span style="color: gray;">=</span> t1<span style="color: gray;">.</span>ID_PERSON</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: gray;">INNER</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> <span style="color: gray;">JOIN</span> dbo<span style="color: gray;">.</span>REC_LOOKUP <span style="color: blue;">AS</span> t2 <span style="color: blue;">ON</span> t0<span style="color: gray;">.</span>ID_PRIORITY <span style="color: gray;">=</span> t2<span style="color: gray;">.</span>ID_REC_LOOKUP</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: gray;">INNER</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> <span style="color: gray;">JOIN</span> dbo<span style="color: gray;">.</span>REC_LOOKUP <span style="color: blue;">AS</span> t3 <span style="color: blue;">ON</span> t0<span style="color: gray;">.</span>ID_SOURCE <span style="color: gray;">=</span> t3<span style="color: gray;">.</span>ID_REC_LOOKUP</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: gray;">LEFT</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> <span style="color: gray;">OUTER</span> <span style="color: gray;">JOIN</span> dbo<span style="color: gray;">.</span>PERSON_WORKEXPERIENCE <span style="color: blue;">AS</span> t4 <span style="color: blue;">ON</span> <span style="color: gray;">(</span>t4<span style="color: gray;">.</span>IS_PRESENT <span style="color: gray;">=</span> 1<span style="color: gray;">)</span> <span style="color: gray;">AND</span> <span style="color: gray;">(</span>t1<span style="color: gray;">.</span>ID_PERSON <span style="color: gray;">=</span> t4<span style="color: gray;">.</span>ID_PERSON<span style="color: gray;">)</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: gray;">LEFT</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> <span style="color: gray;">OUTER</span> <span style="color: gray;">JOIN</span> dbo<span style="color: gray;">.</span>COMPANY <span style="color: blue;">AS</span> t5 <span style="color: blue;">ON</span> t4<span style="color: gray;">.</span>ID_COMPANY <span style="color: gray;">=</span> <span style="color: gray;">(</span>t5<span style="color: gray;">.</span>ID_COMPANY<span style="color: gray;">)</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><strong><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: gray;">LEFT</span></strong><strong><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> <span style="color: gray;">OUTER</span> <span style="color: gray;">JOIN</span> dbo<span style="color: gray;">.</span>REC_EVENT <span style="color: blue;">AS</span> t6 <span style="color: blue;">ON</span> <span style="color: gray;">(</span>t0<span style="color: gray;">.</span>ID_PROJECT <span style="color: gray;">=</span> t6<span style="color: gray;">.</span>ID_PROJECT<span style="color: gray;">)</span> <span style="color: gray;">AND</span> <span style="color: gray;">(</span>t0<span style="color: gray;">.</span>ID_PERSON <span style="color: gray;">=</span> t6<span style="color: gray;">.</span>ID_PERSON<span style="color: gray;">)</span></span></strong></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><strong><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: gray;">LEFT</span></strong><strong><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> <span style="color: gray;">OUTER</span> <span style="color: gray;">JOIN</span> dbo<span style="color: gray;">.</span>REC_PROJECT_TARGET_REJECTED <span style="color: blue;">AS</span> t7 <span style="color: blue;">ON</span> t0<span style="color: gray;">.</span>ID_REC_PROJECT_TARGET <span style="color: gray;">=</span> t7<span style="color: gray;">.</span>ID_REC_PROJECT_TARGET</span></strong></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">WHERE</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> <span style="color: gray;">(</span>t0<span style="color: gray;">.</span>ID_PROJECT <span style="color: gray;">=</span> @p0<span style="color: gray;">)</span> <span style="color: gray;">AND</span> <span style="color: gray;">(</span>t6<span style="color: gray;">.</span>ID_REC_EVENT <span style="color: gray;">IS</span> <span style="color: gray;">NULL)</span> <span style="color: gray;">AND</span> <span style="color: gray;">(</span>t7<span style="color: gray;">.</span>ID_REC_PROJECT_TARGET_REJECTED <span style="color: gray;">IS</span> <span style="color: gray;">NULL)</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span lang="RO"> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span lang="RO"> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span lang="RO">Practic, vreau să elimin din recordsetul meu, înregistrările care apar prin tabelele REC_EVENT respectiv REC_PROJECT_TARGET_REJECTED.</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span lang="RO"> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span lang="RO">Astfel, construcţia LINQ arată aşa:</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">from</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> t <span style="color: gray;">in</span> dac<span style="color: gray;">.</span>REC_PROJECT_TARGETs</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: gray;">join</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> p <span style="color: gray;">in</span> dac<span style="color: gray;">.</span>PERSONs <span style="color: blue;">on</span> t<span style="color: gray;">.</span>ID_PERSON equals p<span style="color: gray;">.</span>ID_PERSON</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: gray;">join</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> lp <span style="color: gray;">in</span> dac<span style="color: gray;">.</span>REC_LOOKUPs <span style="color: blue;">on</span> t<span style="color: gray;">.</span>ID_PRIORITY equals lp<span style="color: gray;">.</span>ID_REC_LOOKUP</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: gray;">join</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> ls <span style="color: gray;">in</span> dac<span style="color: gray;">.</span>REC_LOOKUPs <span style="color: blue;">on</span> t<span style="color: gray;">.</span>ID_SOURCE equals ls<span style="color: gray;">.</span>ID_REC_LOOKUP</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: gray;">join</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> wp <span style="color: gray;">in</span> dac<span style="color: gray;">.</span>PERSON_WORKEXPERIENCEs <span style="color: blue;">on</span> p<span style="color: gray;">.</span>ID_PERSON equals wp<span style="color: gray;">.</span>ID_PERSON <span style="color: blue;">into</span> wpl</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">from</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> wpo <span style="color: gray;">in</span> wpl<span style="color: gray;">.</span>Where<span style="color: gray;">(</span>wpo <span style="color: gray;">=&gt;</span> wpo<span style="color: gray;">.</span>IS_PRESENT<span style="color: gray;">).</span>DefaultIfEmpty<span style="color: gray;">()</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: gray;">join</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> co <span style="color: gray;">in</span> dac<span style="color: gray;">.</span>COMPANies <span style="color: blue;">on</span> wpo<span style="color: gray;">.</span>ID_COMPANY equals co<span style="color: gray;">.</span>ID_COMPANY <span style="color: blue;">into</span> cpu</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">from</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> c <span style="color: gray;">in</span> cpu<span style="color: gray;">.</span>DefaultIfEmpty<span style="color: gray;">()</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><strong><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: gray;">join</span></strong><strong><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> re <span style="color: gray;">in</span> dac<span style="color: gray;">.</span>REC_EVENTs <span style="color: blue;">on</span> new <span style="color: gray;">{</span> t<span style="color: gray;">.</span>ID_PROJECT<span style="color: gray;">,</span> t<span style="color: gray;">.</span>ID_PERSON <span style="color: gray;">}</span> equals new <span style="color: gray;">{</span> re<span style="color: gray;">.</span>ID_PROJECT<span style="color: gray;">,</span> re<span style="color: gray;">.</span>ID_PERSON <span style="color: gray;">}</span> <span style="color: blue;">into</span> tempEvents <span style="color: blue;">from</span> events <span style="color: gray;">in</span> tempEvents<span style="color: gray;">.</span>DefaultIfEmpty<span style="color: gray;">()</span></span></strong></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><strong><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: gray;">join</span></strong><strong><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> rj <span style="color: gray;">in</span> dac<span style="color: gray;">.</span>REC_PROJECT_TARGET_REJECTEDs <span style="color: blue;">on</span> t<span style="color: gray;">.</span>ID_REC_PROJECT_TARGET equals rj<span style="color: gray;">.</span>ID_REC_PROJECT_TARGET <span style="color: blue;">into</span> tempRej <span style="color: blue;">from</span> rejected <span style="color: gray;">in</span> tempRej<span style="color: gray;">.</span>DefaultIfEmpty<span style="color: gray;">()</span></span></strong></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">where</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> t<span style="color: gray;">.</span>ID_PROJECT <span style="color: gray;">==</span> projectId <span style="color: gray;">&amp;&amp;</span> <strong>object<span style="color: gray;">.</span>Equals<span style="color: gray;">(null,</span> events<span style="color: gray;">.</span>ID_REC_EVENT<span style="color: gray;">)</span> <span style="color: gray;">&amp;&amp;</span> object<span style="color: gray;">.</span>Equals<span style="color: gray;">(null,</span> rejected<span style="color: gray;">.</span>ID_REC_PROJECT_TARGET_REJECTED<span style="color: gray;">)</span></strong></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">select</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> new <span style="color: gray;">{</span>t<span style="color: gray;">.</span>ID_REC_PROJECT_TARGET<span style="color: gray;">,</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><span> </span>t<span style="color: gray;">.</span>ID_PERSON<span style="color: gray;">,</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><span> </span>t<span style="color: gray;">.</span>ID_PROJECT<span style="color: gray;">,</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><span> </span>c<span style="color: gray;">.</span>COMPANY_NAME<span style="color: gray;">,</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><span> </span>wpo<span style="color: gray;">.</span>POSITION<span style="color: gray;">,</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><span> </span>lp<span style="color: gray;">.</span>VALUE<span style="color: gray;">,</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><span> </span>ls<span style="color: gray;">.</span>VALUE<span style="color: gray;">,</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><span> </span>t<span style="color: gray;">.</span>COMMENT}</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;">
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span lang="RO">Se observă că au aparut cele două tabele in body-ul selectului, însă au apărut şi două elemente noi în clauza WHERE: </span><strong><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">object<span style="color: gray;">.</span>Equals<span style="color: gray;">(null,</span> events<span style="color: gray;">.</span>ID_REC_EVENT<span style="color: gray;">)</span> <span style="color: gray;">&amp;&amp;</span> object<span style="color: gray;">.</span>Equals<span style="color: gray;">(null,</span> rejected<span style="color: gray;">.</span>ID_REC_PROJECT_TARGET_REJECTED<span style="color: gray;">)</span></span></strong></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span lang="RO">Nu am folosit <span> </span></span><strong><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">events<span style="color: gray;">.</span>ID_REC_EVENT == null </span></strong><span lang="RO">deoarece in SQL ar fi arătat aşa: <span> </span><span> </span></span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">t6<span style="color: gray;">.</span>ID_REC_EVENT <span style="color: gray;">=</span> <span style="color: gray;">NULL </span></span><span lang="RO">şi sunt sigur că nu era de dorit </span><span style="font-family: Wingdings;"><span> <img src='http://www.chiriac.ro/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chiriac.ro/2008/11/12/mic-indrumar-de-left-join-cu-linq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LINQ</title>
		<link>http://www.chiriac.ro/2008/05/23/linq/</link>
		<comments>http://www.chiriac.ro/2008/05/23/linq/#comments</comments>
		<pubDate>Fri, 23 May 2008 11:21:05 +0000</pubDate>
		<dc:creator>Lucian Chiriac</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.chiriac.ro/?p=88</guid>
		<description><![CDATA[Am inceput un proiecţel nou şi am zis ca daca tot e micuţ, să il facem cu LINQ, sa fie ca şi proof of concept. Imi place&#8230;  Cel mai mult mi-a dat batai de cap cum se replică o construcţie de genul SELECT UnCâmp FROM Cutare WHERE AltCâmp IN 1,2,3,4 si iese chiar interesant: from u [...]]]></description>
			<content:encoded><![CDATA[<p>Am inceput un proiecţel nou şi am zis ca daca tot e micuţ, să il facem cu LINQ, sa fie ca şi proof of concept.</p>
<p>Imi place&#8230; </p>
<p>Cel mai mult mi-a dat batai de cap cum se replică o construcţie de genul</p>
<p><em>SELECT UnCâmp FROM Cutare WHERE AltCâmp IN 1,2,3,4</em></p>
<p>si iese chiar interesant:</p>
<p><span style="color: #ff0000;">from u in dataContext.Cutares where listaMea.Contains(u.AltCâmp)<br />
select u.UnCâmp</span></p>
<p> </p>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.chiriac.ro/2008/05/23/linq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Target&#8230; pe lîngă</title>
		<link>http://www.chiriac.ro/2008/03/20/target-pe-linga/</link>
		<comments>http://www.chiriac.ro/2008/03/20/target-pe-linga/#comments</comments>
		<pubDate>Thu, 20 Mar 2008 10:02:40 +0000</pubDate>
		<dc:creator>Lucian Chiriac</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.chiriac.ro/?p=83</guid>
		<description><![CDATA[Bun, ştim că Target, ZF si Business Magazin sunt fraţi, da chiar împart şi aceeaşi programatori? O mostră de SQL apărut pe sait azi: select *,(select financialobject_value from financialobject where financialentity_id = 4 and financialobject_title = A.financialobject_title and financialobject_datetime = (select DISTINCT financialobject_datetime from financialobject order by financialobject_datetime DESC LIMIT 1,1) ) as previousvalue from [...]]]></description>
			<content:encoded><![CDATA[<p>Bun, ştim că Target, ZF si Business Magazin sunt fraţi, da chiar împart şi aceeaşi programatori?</p>
<p>O mostră de SQL apărut pe sait azi:</p>
<p><em>select *,(select financialobject_value from financialobject where financialentity_id = 4 and financialobject_title = A.financialobject_title and financialobject_datetime = (select DISTINCT financialobject_datetime from financialobject order by financialobject_datetime DESC LIMIT 1,1) ) as previousvalue from financialobject as A where financialentity_id = 4 and financialobject_datetime = (select DISTINCT financialobject_datetime from financialobject order by financialobject_datetime DESC LIMIT 0,1)</em></p>
<p>Tare, nu?</p>
<p>Poza mai jos:</p>
<p><a target="_blank" title="Programatori varza" href="http://www.flickr.com/photos/14222219@N05/2346679285/"><img width="500" height="449" alt="AlteDude" src="http://farm4.static.flickr.com/3114/2346679285_0eae72df99.jpg" /></a>
</p>
<p><!--1a0d692410f0e0c3ceb16cc02bcd9c63-->
</p>
<p><!--a00abc98f74a4cc0d5d1e836dcd225e3--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chiriac.ro/2008/03/20/target-pe-linga/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows neamule, cald si proaspat</title>
		<link>http://www.chiriac.ro/2008/03/18/windows-neamule-cald-si-proaspat/</link>
		<comments>http://www.chiriac.ro/2008/03/18/windows-neamule-cald-si-proaspat/#comments</comments>
		<pubDate>Tue, 18 Mar 2008 06:59:07 +0000</pubDate>
		<dc:creator>Lucian Chiriac</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.chiriac.ro/?p=82</guid>
		<description><![CDATA[Via Endgadget O nouă versiune de Windows, specială pentru Egipt. Ketchup flavour ??]]></description>
			<content:encoded><![CDATA[<p>Via <a target="_blank" href="http://www.engadget.com/2008/03/17/next-version-of-microsoft-windows-ketchup-flavored/">Endgadget </a> <img src='http://www.chiriac.ro/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>O nouă versiune de Windows, specială pentru Egipt.</p>
<p><a target="_blank" title="Windows Preview " href="http://www.flickr.com/photos/14222219@N05/2341988021/"><img width="440" height="586" alt="new_windows.preview" src="http://farm4.static.flickr.com/3165/2341988021_93258e467d_o.jpg" /></a></p>
<p>Ketchup flavour ?? <img src='http://www.chiriac.ro/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</p>
<p><!--088b97ff838ec73393ecfc2e7ae77a1b--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chiriac.ro/2008/03/18/windows-neamule-cald-si-proaspat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Timesheet</title>
		<link>http://www.chiriac.ro/2008/03/04/timesheet/</link>
		<comments>http://www.chiriac.ro/2008/03/04/timesheet/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 07:28:06 +0000</pubDate>
		<dc:creator>Lucian Chiriac</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.chiriac.ro/?p=79</guid>
		<description><![CDATA[De azi am instalat un timesheet pentru Team Foundation Server. Este un add-on la Team System Web Access, de pe CodePlex. Acuma nu mai am cum sa ma fofilez]]></description>
			<content:encoded><![CDATA[<p>De azi am instalat un timesheet pentru <a target="_blank" href="http://en.wikipedia.org/wiki/Team_Foundation_Server">Team Foundation Server</a>. Este un add-on la <a target="_blank" href="http://www.devbiz.com/teamplain/webaccess/default.aspx">Team System Web Access</a>, de pe <a target="_blank" href="http://www.codeplex.com/tfstimesheet">CodePlex</a>.</p>
<p>Acuma nu mai am cum sa ma fofilez <img src='http://www.chiriac.ro/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</p>
<p><!--d582bfe02d80db8160dc1cea64210407--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chiriac.ro/2008/03/04/timesheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>La intreprindere, de doua zile</title>
		<link>http://www.chiriac.ro/2007/12/06/la-intreprindere-de-doua-zile/</link>
		<comments>http://www.chiriac.ro/2007/12/06/la-intreprindere-de-doua-zile/#comments</comments>
		<pubDate>Thu, 06 Dec 2007 10:23:00 +0000</pubDate>
		<dc:creator>Lucian Chiriac</dc:creator>
				<category><![CDATA[Calatorii]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.chiriac.ro/?p=59</guid>
		<description><![CDATA[Impresiile sunt plăcute (probabil pentru că sunt colaborator extern și băieții se poarta frumos). Marți și miercuri am reușit să mă conectez la ERP și să arunc ceva date pe o aplicație web, folosind conectorii specializați (și funcții BAPI).  Cu ocazia asta, am mai căpătat niște cunoștințe: știu acum să extrag date din ERP-ul cu [...]]]></description>
			<content:encoded><![CDATA[<p>Impresiile sunt plăcute (probabil pentru că sunt colaborator extern și băieții se poarta frumos).</p>
<p>Marți și miercuri am reușit să mă conectez la ERP și să arunc ceva date pe o aplicație web, folosind conectorii specializați (și funcții BAPI).  Cu ocazia asta, am mai căpătat niște cunoștințe: știu acum să extrag date din ERP-ul cu pricina și să vizualizez date într-un mod plăcut ochiului (și clientului).</p>
<p>Aseară am fost în Mannheim pe la cumpărături, unde m-am întilnit și cu Moș Niculae cu ceva cadouri <img src='http://www.chiriac.ro/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</p>
<p><!--992a17ba75194336329b838f41e1b871--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chiriac.ro/2007/12/06/la-intreprindere-de-doua-zile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

