<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6621729207202454780</id><updated>2024-10-09T10:22:23.601-07:00</updated><category term="Final Version"/><category term="Draft"/><category term="ESRI"/><category term="ArcObjects"/><category term="SDE"/><category term="Silverlight"/><category term="Blog"/><category term="SQL Server 2008"/><category term="Unit Tests"/><category term="Beta"/><category term="ArcGIS Server"/><category term="Exception"/><category term="VS2010"/><category term="Bugs"/><category term="ESRI License"/><category term="Error"/><category term="General"/><category term="Beginners"/><category term="SQL"/><category term="ArcEngine"/><category term="FluentMigrator"/><category term="Game Programming"/><category term="Oracle"/><category term="Title Draft"/><category term="ESRI Silverlight API"/><category term="Event Viewer"/><category term="Expert"/><category term="IIS"/><category term="Mocks"/><category term="Academic"/><category term="ArcDesktop"/><category term="CAD"/><category term="Entity Framework"/><category term="Google Map API"/><category term="Hello"/><category term="Linq2Sql"/><category term="PowerShell"/><category term="Python"/><category term="Resharper"/><category term="System"/><category term="VS2008"/><title type='text'>Dll Shepherd.Net Notes</title><subtitle type='html'>This blog is a placeholder for &lt;a href=&quot;http://www.dllshepherd.net/&quot;&gt;my real blog&lt;/a&gt; notes (used to share my drafts). &#xa;&lt;br&gt;Please visit &lt;a href=&quot;http://www.dllshepherd.net/&quot;&gt;Dll Shepherd.Net&lt;/a&gt;&#xa;&lt;br&gt;Please don&#39;t reference any of this posts because they might be moved or deleted!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dllshepherdnotes.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://dllshepherdnotes.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Roy Dallal</name><uri>http://www.blogger.com/profile/00119182637862451390</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzYa4eUS6sxYWIdkX_Cpnmnz0KV0XcxtEtSA6D0BlTlRnoN1QE-rptKlzZhon1-snMROn8d3eQWTITW9YKwTFat1C3hJrsXuE-BoN0DBalwgiwaUOKDC9m_OihfkWyUQ/s220/MyPhoto.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>98</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6621729207202454780.post-567266906642388123</id><published>2013-05-29T08:01:00.000-07:00</published><updated>2013-05-29T08:01:33.236-07:00</updated><title type='text'>HTML5+MVC Course, Day 4</title><content type='html'>&lt;p&gt;Continued from &lt;a href=&quot;http://www.dllshepherd.net/2013/02/html5mvc-course-day-1.html&quot; target=&quot;_blank&quot;&gt;day 1&lt;/a&gt;, &lt;a href=&quot;http://www.dllshepherd.net/2013/02/html5mvc-course-day-2.html&quot; target=&quot;_blank&quot;&gt;day 2&lt;/a&gt;, day 3.&lt;/p&gt; &lt;p&gt;This lesson was mostly about writing Object Oriented in JavaScript.&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Lets start by creating a basic model Customer, customer contains a first name, last name and full name that contains both:&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:95b585d1-2185-475c-a844-fea3d434cebd&quot; class=&quot;wlWriterSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;padding-bottom: 2px; background-color: #ffffff; padding-left: 5px; padding-right: 5px; overflow: auto; padding-top: 2px&quot;&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; customer() {&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; _this = &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;;&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;_this.firstName = &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #a31515&quot;&gt;&#39;Yair&#39;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;;&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;_this.lastName = &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #a31515&quot;&gt;&#39;Siwek&#39;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;;&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;_this.fullName = _this.firstName + &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #a31515&quot;&gt;&#39; &#39;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; + &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;.lastName;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;p&gt;Given that this is our body:&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:b220d263-3666-45b9-92aa-654e2480f6cc&quot; class=&quot;wlWriterSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;padding-bottom: 2px; background-color: #ffffff; padding-left: 5px; padding-right: 5px; overflow: auto; padding-top: 2px&quot;&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #ff0000&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;=&quot;firstName&quot;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;--&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #ff0000&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;=&quot;lastName&quot;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #ff0000&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;=&quot;fullName&quot;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;p&gt;A basic use for the model will be:&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:409c5caf-969e-4cef-a713-375084dfb8b6&quot; class=&quot;wlWriterSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;padding-bottom: 2px; background-color: #ffffff; padding-left: 5px; padding-right: 5px; overflow: auto; padding-top: 2px&quot;&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #ff0000&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;=&quot;Scripts/App/Customer_a.js&quot;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;$(&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; () {&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; cust = &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; customer();&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;cust.firstName = &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #a31515&quot;&gt;&quot;Moshe&quot;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;;&lt;/span&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;$(&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #a31515&quot;&gt;&#39;#firstName&#39;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;).html(cust.firstName);&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;$(&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #a31515&quot;&gt;&#39;#lastName&#39;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;).html(cust.lastName);&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;$(&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #a31515&quot;&gt;&#39;#fullName&#39;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;).html(cust.fullName);&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;});&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;p&gt;This works.&lt;/p&gt; &lt;p&gt;But what if before using jQuery we would have changed firstName? then fullName would have still been Yair Siwek. In order for the right value for fullName to appear we need to change fullName to a method:&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:4342bdd6-1cd6-40f5-8dd1-ddfcb881666f&quot; class=&quot;wlWriterSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;padding-bottom: 2px; background-color: #ffffff; padding-left: 5px; padding-right: 5px; overflow: auto; padding-top: 2px&quot;&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;_this.fullName = &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; ()&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;{&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #008000&quot;&gt;//if we wrote this then it&#39;s value would have been fullName, but _this is customer!&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; (_this.firstName + &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #a31515&quot;&gt;&#39; &#39;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; + _this.lastName);&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;};&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;p&gt;TODO: _this&lt;/p&gt; &lt;p&gt;We also need to change our html:&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:1f448a5c-24b7-4a01-a59d-8746bafa7c21&quot; class=&quot;wlWriterSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;padding-bottom: 2px; background-color: #ffffff; padding-left: 5px; padding-right: 5px; overflow: auto; padding-top: 2px&quot;&gt;&lt;br&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;$(&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #a31515&quot;&gt;&#39;#fullName&#39;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;).html(cust.fullName());&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;p&gt;to use a method instead of a property. &lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;We can now create another instance of customer:&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:de10890b-3301-4c91-9188-37a357df6a22&quot; class=&quot;wlWriterSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;padding-bottom: 2px; background-color: #ffffff; padding-left: 5px; padding-right: 5px; overflow: auto; padding-top: 2px&quot;&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; cust = &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; customer();&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; cust1 = &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; customer();&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;p&gt;But if we use a debugger we will see the method fullName is recreated for each instance of customer:&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixOS1oHAUc0-5dUJ-MCeIRk-oZ1hPJfKEy89_vd-ILbemKKFYQGw_CTvOpjBhLckvbRu6Ugc8ppazVOf9svA7mIHTHudNBP7pZDyiQUJbrpJIIilrZFCTxdZtwh3Z_cKq0OYOJDHWBzCLf/s1600-h/CustomerMethodDefinition8.png&quot;&gt;&lt;img style=&quot;background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px&quot; title=&quot;CustomerMethodDefinition&quot; border=&quot;0&quot; alt=&quot;CustomerMethodDefinition&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSBzt3Z4N-6fVZ100DdNQNdaJeW3o26ngjbT5D1GVQAXntHCzQ2Kz7AE3nJk1S5DJVHDIVo7_yw4ch7oNrfiGJEOweD6LoLiB0PGEiUyNTxQxIWl7YdYkJTrCU7gJaSE_wGVhTuAyl75as/?imgmax=800&quot; width=&quot;484&quot; height=&quot;450&quot;&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;To fix that we will use a Prototype. A Prototype is common to all instances:&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:d4d26d17-a048-44ab-8ec1-2be364637d92&quot; class=&quot;wlWriterSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;padding-bottom: 2px; background-color: #ffffff; padding-left: 5px; padding-right: 5px; overflow: auto; padding-top: 2px&quot;&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; customer() {&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; _this = &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;;&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;_this.firstName = &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #a31515&quot;&gt;&#39;Yair&#39;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;;&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;_this.lastName = &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #a31515&quot;&gt;&#39;Siwek&#39;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;}&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;customer.prototype = {&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;fullName:&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; ()&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;{&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #008000&quot;&gt;//_this does not exist here!&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;.firstName + &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #a31515&quot;&gt;&#39; &#39;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; + &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;.lastName);&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;}&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;p&gt;&lt;em&gt;&lt;u&gt;Note:&lt;/u&gt; We can’t use _this here because it doesn’t exist in the scope.&lt;/em&gt;&lt;/p&gt; &lt;p&gt;Now the instance doesn’t include the implementation (the Prototype has it). &lt;/p&gt; &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjM_Bv-5zM4l4VLUKmQWH3LN7befBooPcrZe8WHHnBDiPnaWP7LVFnaNWYjeBITX10hsbe08GhZQirwcqfQEswKJZG2TH9-7EVsStum8ZRDHKFr82nUNQPQnXMSk19RCsyeNDmBGMpPANzL/s1600-h/CustomerPrototype7.png&quot;&gt;&lt;img style=&quot;background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px&quot; title=&quot;CustomerPrototype&quot; border=&quot;0&quot; alt=&quot;CustomerPrototype&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuZtv6CkOUuYn3M83yyPbUOE-fmOYXES5DAn0moSYFblF18WgKYD8oJPRGtueVgMyC1MpE0BsxMLoZ48Ce6LGS5r4gdjzHftH0U1U5j9jIZDkVLT98WfirwB_BNkxD5n409Z5XETKe9B5i/?imgmax=800&quot; width=&quot;405&quot; height=&quot;488&quot;&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;We could have also used an Anonymous Type:&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:d24c694b-ef5c-4afc-be03-004a632a2498&quot; class=&quot;wlWriterSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;padding-bottom: 2px; background-color: #ffffff; padding-left: 5px; padding-right: 5px; overflow: auto; padding-top: 2px&quot;&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;$(&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; () {&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; cust = {&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;firstName: &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #a31515&quot;&gt;&#39;Joe&#39;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;,&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;lastName: &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #a31515&quot;&gt;&#39;Sh&#39;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;,&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;fullName: &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; () {&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; cust.firstName + &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #a31515&quot;&gt;&#39; &#39;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; + cust.lastName; &lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;}&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;};&lt;/span&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;$(&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #a31515&quot;&gt;&#39;#firstName&#39;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;).html(cust.firstName);&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;$(&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #a31515&quot;&gt;&#39;#lastName&#39;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;).html(cust.lastName);&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;$(&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #a31515&quot;&gt;&#39;#fullName&#39;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;).html(cust.fullName());&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;});&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;p&gt;Though we can’t use multiple instances the result is the same.&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;&lt;u&gt;&lt;strong&gt;Book recommendation:&lt;/strong&gt;&lt;/u&gt; &lt;a href=&quot;http://addyosmani.com/resources/essentialjsdesignpatterns/book/&quot; target=&quot;_blank&quot;&gt;Learning JavaScript Design Patterns by Addy Osmani&lt;/a&gt; (166 pages)&lt;/p&gt; &lt;p&gt;Shows how to &lt;a href=&quot;http://addyosmani.com/resources/essentialjsdesignpatterns/book/#constructorpatternjavascript&quot; target=&quot;_blank&quot;&gt;create an empty object&lt;/a&gt; – 3 ways.&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;With the last example there was a problem: changing the values does not change the controls:&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:3a5d5bd3-6547-4943-b667-7966cd78cd20&quot; class=&quot;wlWriterSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;padding-bottom: 2px; background-color: #ffffff; padding-left: 5px; padding-right: 5px; overflow: auto; padding-top: 2px&quot;&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;cust.firstName = &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #a31515&quot;&gt;&quot;Moshe&quot;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;;&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;$(&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #a31515&quot;&gt;&#39;#firstName&#39;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;).html(cust.firstName);&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;$(&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #a31515&quot;&gt;&#39;#lastName&#39;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;).html(cust.lastName);&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;$(&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #a31515&quot;&gt;&#39;#fullName&#39;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;).html(cust.fullName());&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;cust.lastName = &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #a31515&quot;&gt;&#39;Blah&#39;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;p&gt;Both last name and full name won’t contain “Blah”.&lt;/p&gt; &lt;p&gt;To solve that we will have to do a data binding with KnockOut.&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:dc947af9-fc23-41bd-aa80-7fd511445120&quot; class=&quot;wlWriterSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;padding-bottom: 2px; background-color: #ffffff; padding-left: 5px; padding-right: 5px; overflow: auto; padding-top: 2px&quot;&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; cust = &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; customer();&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;cust.firstName = &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #a31515&quot;&gt;&quot;Moshe&quot;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;;&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;ko.applyBindings(cust,&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #008000&quot;&gt;//$(&#39;#divTop&#39;));//doesn&#39;t work&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #008000&quot;&gt;//document.getElementById(&#39;divTop&#39;));//works&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;$(&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #a31515&quot;&gt;&#39;#divTop&#39;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;)[0]);&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #008000&quot;&gt;//work&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;cust.lastName = &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #a31515&quot;&gt;&#39;Blah&#39;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;p&gt;model – the data &lt;/p&gt; &lt;p&gt;node - the element on which we want to the binding, &lt;/p&gt; &lt;p&gt;$(‘#Name’) returns an array, node needs a single element so we will have to pass the first element by adding [0].&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Note: to add inteliscence to the JavaScript code we will drag and drop the KnockOut library to the top of the script, it will be converted to:&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:99b2cc27-6dec-410f-8b63-4dca6e065052&quot; class=&quot;wlWriterSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;padding-bottom: 2px; background-color: #ffffff; padding-left: 5px; padding-right: 5px; overflow: auto; padding-top: 2px&quot;&gt;&lt;span style=&quot;background: #ffffff; color: #808080&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #008000&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #808080&quot;&gt;&amp;lt;reference path=&quot;../knockout-2.2.1.debug.js&quot; /&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;p&gt;And from now on you have inteliscence turned on (if you have Resharper then you can skip this step).&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;To make the model observable we will have to change each field to be an observable by:&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:93787fc6-bbce-4300-ad7d-b095c5964271&quot; class=&quot;wlWriterSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;padding-bottom: 2px; background-color: #ffffff; padding-left: 5px; padding-right: 5px; overflow: auto; padding-top: 2px&quot;&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;_this.firstName = ko.observable(&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #a31515&quot;&gt;&#39;Yair&#39;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;);&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;_this.lastName = ko.observable(&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #a31515&quot;&gt;&#39;Siwek&#39;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;p&gt;that will convert it to a method which is used by:&lt;/p&gt; &lt;p&gt;In HTML:&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:2119da96-d420-44ec-b770-28c1a35fb76e&quot; class=&quot;wlWriterSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;padding-bottom: 2px; background-color: #ffffff; padding-left: 5px; padding-right: 5px; overflow: auto; padding-top: 2px&quot;&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;input&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #ff0000&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;=&quot;firstName&quot;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #ff0000&quot;&gt;data-bind&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;=&quot;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;value: firstName&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&quot;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;p&gt;In JavaScript:&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:0cd35372-7f48-4f62-aefc-159e3e005eff&quot; class=&quot;wlWriterSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;padding-bottom: 2px; background-color: #ffffff; padding-left: 5px; padding-right: 5px; overflow: auto; padding-top: 2px&quot;&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;customer.prototype = {&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;fullName:&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; ()&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;{&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;.firstName() + &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #a31515&quot;&gt;&#39; &#39;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; + &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;.lastName());&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;}&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;p&gt;When writing the data-bind from the HTML you can use either name() or name. But from JavaScript you must use name().&lt;/p&gt; &lt;p&gt;TODO:check why in JS&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;TODO: 18:06 not clear: when working with ko.computed +ko.observable than firstName() in the HTML data-bind doesn’t work. TODO: add code&lt;/p&gt; &lt;p&gt;TODO: There is difference between ko.computed and function(), computed is only called once?&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;h4&gt;Observable Array&lt;/h4&gt; &lt;p&gt;When the array is simple (non object):&lt;/p&gt; &lt;p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:570b4b28-7f30-474e-a2c8-9880d1c4051f&quot; class=&quot;wlWriterSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;padding-bottom: 2px; background-color: #ffffff; padding-left: 5px; padding-right: 5px; max-height: 100px; overflow: auto; padding-top: 2px&quot;&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;_this.grades = ko.observableArray([10, 11, 12]);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/p&gt; &lt;p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:47d1e257-f380-4ec5-bc2a-569a899d67e5&quot; class=&quot;wlWriterSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;padding-bottom: 2px; background-color: #ffffff; padding-left: 5px; padding-right: 5px; overflow: auto; padding-top: 2px&quot;&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;ul&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #ff0000&quot;&gt;data-bind&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;=&quot;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;foreach: grades&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&quot;&amp;gt;&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #ff0000&quot;&gt;data-bind&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;=&quot;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;text: $index&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;.&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #ff0000&quot;&gt;data-bind&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;=&quot;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;text: $data&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;ul&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/p&gt; &lt;p&gt;$index – the index of the item in the array.&lt;/p&gt; &lt;p&gt;$data – the item data&lt;/p&gt; &lt;p&gt;Output:&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhf2vaSRDB_huqF8APGI-sDPmNp-GvzgciDDVNG_SPMbwO9yaux32nIOxzcGiJcA_PxNyIa0V1TjflTfJSiL-QcrODz64oK6rYEyLXnRZU7uHEeTnD6EVdiNaehqzni0JZRYKANVzjqIpJ-/s1600-h/ObservableSimpleArray3.png&quot;&gt;&lt;img style=&quot;background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px&quot; title=&quot;ObservableSimpleArray&quot; border=&quot;0&quot; alt=&quot;ObservableSimpleArray&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjulFEJPnCEXDwJC24uS2QXp7t4sJ6fMRDMlVzjH9URM7i4Zcbesq_bb1VWqTEiPcoBCy-pcthjViV0MuTEbC9JTjUiT5wf6KyO_8YlpmesQXZK5W6BhZ-IP6cXC16w4sOa1sHmjs2ju-ql/?imgmax=800&quot; width=&quot;162&quot; height=&quot;85&quot;&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;When the array is of objects we can bind to the property names:&lt;/p&gt; &lt;p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:6da201e1-13ab-45f2-86a5-699973931dc7&quot; class=&quot;wlWriterSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;padding-bottom: 2px; background-color: #ffffff; padding-left: 5px; padding-right: 5px; overflow: auto; padding-top: 2px&quot;&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;_this.grades = ko.observableArray([&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;{ subject: &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #a31515&quot;&gt;&#39;hist&#39;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;, mark: 90 },&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;{ subject: &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #a31515&quot;&gt;&#39;math&#39;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;, mark: 95 } ]);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/p&gt; &lt;p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:7d817931-26ab-4530-967e-77a7a6f6a1a1&quot; class=&quot;wlWriterSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;padding-bottom: 2px; background-color: #ffffff; padding-left: 5px; padding-right: 5px; overflow: auto; padding-top: 2px&quot;&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;ul&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #ff0000&quot;&gt;data-bind&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;=&quot;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;foreach: grades&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&quot;&amp;gt;&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #ff0000&quot;&gt;data-bind&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;=&quot;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;text: subject&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;-&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #ff0000&quot;&gt;data-bind&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;=&quot;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;text: mark&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;background: #ffffff; color: #000000&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #800000&quot;&gt;ul&lt;/span&gt;&lt;span style=&quot;background: #ffffff; color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/p&gt; &lt;p&gt;&lt;em&gt;&lt;u&gt;Note:&lt;/u&gt; for intelliscence in KO you will have to install &lt;/em&gt;&lt;a href=&quot;http://www.asp.net/vnext&quot; target=&quot;_blank&quot;&gt;&lt;em&gt;ASP.NET and Web Tools 2012.2&lt;/em&gt;&lt;/a&gt;&lt;em&gt;.&lt;/em&gt;&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;KO Templates&lt;/p&gt; &lt;p&gt;HTML usage of a Template has at least 2 prameters:&lt;/p&gt; &lt;p&gt;name – the template name&lt;/p&gt; &lt;p&gt;data – the observable data&lt;/p&gt; &lt;p&gt;The template definition:&lt;/p&gt; &lt;p&gt;TODO: Add code&lt;/p&gt; &lt;p&gt;id – the name of the template&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Adding templates to a page:&lt;/p&gt; &lt;p&gt;1. Using href:&lt;/p&gt; &lt;p&gt;TODO &lt;/p&gt; &lt;p&gt;Will cause the template to be downloaded to the client even when the template is not used.&lt;/p&gt; &lt;p&gt;2. Dynamically through JS code:&lt;/p&gt; &lt;p&gt;TODO&lt;/p&gt;  </content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/567266906642388123'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/567266906642388123'/><link rel='alternate' type='text/html' href='http://dllshepherdnotes.blogspot.com/2013/05/html5mvc-course-day-4.html' title='HTML5+MVC Course, Day 4'/><author><name>Roy Dallal</name><uri>http://www.blogger.com/profile/00119182637862451390</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzYa4eUS6sxYWIdkX_Cpnmnz0KV0XcxtEtSA6D0BlTlRnoN1QE-rptKlzZhon1-snMROn8d3eQWTITW9YKwTFat1C3hJrsXuE-BoN0DBalwgiwaUOKDC9m_OihfkWyUQ/s220/MyPhoto.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSBzt3Z4N-6fVZ100DdNQNdaJeW3o26ngjbT5D1GVQAXntHCzQ2Kz7AE3nJk1S5DJVHDIVo7_yw4ch7oNrfiGJEOweD6LoLiB0PGEiUyNTxQxIWl7YdYkJTrCU7gJaSE_wGVhTuAyl75as/s72-c?imgmax=800" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-6621729207202454780.post-1211773384908189986</id><published>2013-03-05T08:45:00.001-08:00</published><updated>2013-03-05T08:45:38.496-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ArcObjects"/><category scheme="http://www.blogger.com/atom/ns#" term="ESRI"/><title type='text'>ArcObjects: Licensing</title><content type='html'>&lt;p&gt;This post is the 7th post in my &lt;a href=&quot;http://www.dllshepherd.net/2011/11/list-of-arcobjects-posts-introduction.html&quot;&gt;ArcObjects series&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;ESRI has a very annoying licensing settings which I curse every time my license expires (once a year using EDN). Lets start by saying ESRI delivers the license in the form of ABC######: EFL123456, ESU123456, ECP123456, RUD123456 and each has a different set of instructions. I usually get an ECP license (ArcGis Server) and there is a &lt;a href=&quot;http://resources.arcgis.com/content/arcgisserver/10.0/authorization&quot; target=&quot;_blank&quot;&gt;guide for that&lt;/a&gt;. &lt;/p&gt; &lt;p&gt;Assuming you managed to pass the nightmare and tried to use ArcObjects in your code then you will get an Exception. In this case I just run this code:&lt;/p&gt; &lt;p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:a17ab846-2e2c-4368-ba1d-103c4975a1b7&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;background-color: #ffffff; overflow: auto; padding: 2px 5px;&quot;&gt;&lt;span style=&quot;color:#2b91af&quot;&gt;IPoint&lt;/span&gt; point = &lt;span style=&quot;color:#0000ff&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color:#2b91af&quot;&gt;PointClass&lt;/span&gt; { X = x, Y = y, SpatialReference = CreateWgsSpatialReference() };&lt;/div&gt; &lt;/div&gt; &lt;/div&gt;&lt;/p&gt; &lt;p&gt;And got this exception:&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;System.Runtime.InteropServices.COMException : Retrieving the COM class factory for component with CLSID {00A5CB41-52DA-11D0-A8F2-00608C85EDE5} failed due to the following error: 80040111 ClassFactory cannot supply requested class (Exception from HRESULT: 0x80040111 (CLASS_E_CLASSNOTAVAILABLE)).&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;As you can see it is very descriptive. But basically it tells you that without initializing the license you won’t be able to use any ArcObjects (even IPoint). In version 9.3 the license was done using class RuntimeManager but in version 10 the IAoInitialize interface was added. I usually add them together like this:&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:0e479a55-41e2-4901-bfae-859a8ed50a4e&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;background-color: #ffffff; overflow: auto; padding: 2px 5px;&quot;&gt;&lt;span style=&quot;color:#0000ff&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color:#0000ff&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color:#0000ff&quot;&gt;bool&lt;/span&gt; Initialize(&lt;span style=&quot;color:#2b91af&quot;&gt;ProductCode&lt;/span&gt; product, &lt;span style=&quot;color:#2b91af&quot;&gt;esriLicenseProductCode&lt;/span&gt; esriLicenseProduct)&lt;br&gt; {&lt;br&gt;     &lt;span style=&quot;color:#0000ff&quot;&gt;if&lt;/span&gt; (&lt;span style=&quot;color:#2b91af&quot;&gt;RuntimeManager&lt;/span&gt;.Bind(product))&lt;br&gt;     {&lt;br&gt;         &lt;span style=&quot;color:#2b91af&quot;&gt;IAoInitialize&lt;/span&gt; aoInit = &lt;span style=&quot;color:#0000ff&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color:#2b91af&quot;&gt;AoInitializeClass&lt;/span&gt;();&lt;br&gt;         aoInit.Initialize(esriLicenseProduct);&lt;br&gt;         &lt;span style=&quot;color:#0000ff&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color:#0000ff&quot;&gt;true&lt;/span&gt;;&lt;br&gt;     }&lt;br&gt;     &lt;span style=&quot;color:#0000ff&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color:#0000ff&quot;&gt;false&lt;/span&gt;;&lt;br&gt; }&lt;/div&gt; &lt;/div&gt; &lt;/div&gt;  &lt;p&gt;This method checks if the current machine has a license of ProductCode which is an enum with values like Server or Engine and if it does returns true. The usage looks like this:&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:df48a9a1-981e-4122-97ea-66c5db47505d&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;background-color: #ffffff; overflow: auto; padding: 2px 5px;&quot;&gt;&lt;span style=&quot;color:#0000ff&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color:#0000ff&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color:#0000ff&quot;&gt;bool&lt;/span&gt; _isStarted = &lt;span style=&quot;color:#0000ff&quot;&gt;false&lt;/span&gt;;&lt;br&gt; &lt;br&gt; &lt;span style=&quot;color:#0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color:#0000ff&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color:#0000ff&quot;&gt;void&lt;/span&gt; Start()&lt;br&gt; {&lt;br&gt;     &lt;span style=&quot;color:#0000ff&quot;&gt;if&lt;/span&gt; (_isStarted) &lt;br&gt;         &lt;span style=&quot;color:#0000ff&quot;&gt;return&lt;/span&gt;;&lt;br&gt; &lt;br&gt;     &lt;span style=&quot;color:#0000ff&quot;&gt;if&lt;/span&gt; (!Initialize(&lt;span style=&quot;color:#2b91af&quot;&gt;ProductCode&lt;/span&gt;.Server, &lt;span style=&quot;color:#2b91af&quot;&gt;esriLicenseProductCode&lt;/span&gt;.esriLicenseProductCodeArcServer))&lt;br&gt;     {&lt;br&gt;         &lt;span style=&quot;color:#0000ff&quot;&gt;if&lt;/span&gt;(!Initialize(&lt;span style=&quot;color:#2b91af&quot;&gt;ProductCode&lt;/span&gt;.Engine, &lt;span style=&quot;color:#2b91af&quot;&gt;esriLicenseProductCode&lt;/span&gt;.esriLicenseProductCodeEngineGeoDB))&lt;br&gt;         {&lt;br&gt;             &lt;span style=&quot;color:#0000ff&quot;&gt;throw&lt;/span&gt; &lt;span style=&quot;color:#0000ff&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color:#2b91af&quot;&gt;ApplicationException&lt;/span&gt;(&lt;br&gt;                 &lt;span style=&quot;color:#a31515&quot;&gt;&amp;quot;Unable to bind to ArcGIS license Server nor to Engine. Please check your licenses.&amp;quot;&lt;/span&gt;);&lt;br&gt;         }&lt;br&gt;     }&lt;br&gt;     _isStarted = &lt;span style=&quot;color:#0000ff&quot;&gt;true&lt;/span&gt;;&lt;br&gt; }&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;p&gt;Since the production machines are usually ArcGis Server and the development machines are Engine we usually check if the machine has Server license and if it doesn’t then we go to the fallback of Engine. Now the creation of PointClass will work.&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;That’s it. &lt;/p&gt;  </content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/1211773384908189986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/1211773384908189986'/><link rel='alternate' type='text/html' href='http://dllshepherdnotes.blogspot.com/2013/03/arcobjects-licensing.html' title='ArcObjects: Licensing'/><author><name>Roy Dallal</name><uri>http://www.blogger.com/profile/00119182637862451390</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzYa4eUS6sxYWIdkX_Cpnmnz0KV0XcxtEtSA6D0BlTlRnoN1QE-rptKlzZhon1-snMROn8d3eQWTITW9YKwTFat1C3hJrsXuE-BoN0DBalwgiwaUOKDC9m_OihfkWyUQ/s220/MyPhoto.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6621729207202454780.post-1141145431769565542</id><published>2012-11-08T09:49:00.000-08:00</published><updated>2012-11-08T09:49:44.726-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Exception"/><category scheme="http://www.blogger.com/atom/ns#" term="Final Version"/><category scheme="http://www.blogger.com/atom/ns#" term="VS2010"/><title type='text'>VS2010: “The project type is not supported by this installation.”</title><content type='html'>&lt;p&gt;This post was moved to &lt;a href=&quot;http://www.dllshepherd.net/&quot; target=&quot;_blank&quot;&gt;my real blog&lt;/a&gt;: &lt;a href=&quot;http://www.dllshepherd.net/2012/11/vs2010-project-type-is-not-supported-by.html&quot;&gt;VS2010: “The project type is not supported by this installation.”&lt;/a&gt;&lt;/p&gt;  </content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/1141145431769565542'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/1141145431769565542'/><link rel='alternate' type='text/html' href='http://dllshepherdnotes.blogspot.com/2011/01/vs2010-project-type-is-not-supported-by.html' title='VS2010: “The project type is not supported by this installation.”'/><author><name>Roy Dallal</name><uri>http://www.blogger.com/profile/00119182637862451390</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzYa4eUS6sxYWIdkX_Cpnmnz0KV0XcxtEtSA6D0BlTlRnoN1QE-rptKlzZhon1-snMROn8d3eQWTITW9YKwTFat1C3hJrsXuE-BoN0DBalwgiwaUOKDC9m_OihfkWyUQ/s220/MyPhoto.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6621729207202454780.post-285522578420259152</id><published>2012-05-14T14:26:00.000-07:00</published><updated>2012-05-14T14:27:57.008-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Beta"/><category scheme="http://www.blogger.com/atom/ns#" term="Silverlight"/><title type='text'>Silverlight: Binding Resource to DataGridTextColumn.Header</title><content type='html'>&lt;p&gt;In the last two days, since it’s the end of our block I have decided to do some minor work (that way a check in won’t really effect the block). One of the changes I thought of was replacing all the free text in our Silverlight application with text from a resource file.&lt;/p&gt; &lt;p&gt;Everything worked like a charm except for the Header of DataGridTextColumn. My original Data Binding looked like this:&lt;/p&gt; &lt;p&gt;&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:73e92898-a666-490c-b7bf-59ffe8e88404&quot; class=&quot;wlWriterSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;background: #fff; overflow: auto&quot;&gt; &lt;ol style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 5px; padding-right: 0px; background: #ffffff; padding-top: 0px&quot;&gt; &lt;li&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;slData&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;DataGridTextColumn&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt; Header&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt; Path&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=Type,&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt; Source&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;={&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;StaticResource&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt; StringsRes}}&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt; Binding&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt; Title}&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&quot;/&amp;gt;&lt;/span&gt; &lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;p&gt;&lt;/p&gt; &lt;p&gt;But the DataGrid columns in the application looked like this:&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkVHFPfjPnNOmZAngt3xyOXSM-BeL8-IiDXTfOzsYHPks4hRP-2JlT8mrG78EN7N87GiCkObgyESYR3DqYuX-FzmMIHJXXQrqYuJBz-uq2x9meJyjezvB6J0wGnd4xqm9PalymEMQ0CUYB/s1600-h/DataGrid-header-column-bug%25255B3%25255D.png&quot;&gt;&lt;img style=&quot;background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px&quot; title=&quot;DataGrid-header-column-bug&quot; border=&quot;0&quot; alt=&quot;DataGrid-header-column-bug&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiG1T4f_ly8mKtD2IssOp7dcaZ9UV6WszD-I1nXSrpMia1nMM4pIfhvwEM6WEcj9bjH2G-0N0pu3eBtjV5qySJQGKjHZTD1a9NWz3KYSWntgWtX-ZXdR5cis26KXda5WpFNCu0JIOwH7ThG/?imgmax=800&quot; width=&quot;500&quot; height=&quot;64&quot;&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;In the end I found the solution &lt;a href=&quot;http://code-around.blogspot.com/2011/01/datagrid-header-nightmare.html&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;:&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:c7e069ae-a1ff-42d5-aa60-3f225c9066b3&quot; class=&quot;wlWriterSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;background: #fff; overflow: auto&quot;&gt; &lt;ol style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 5px; padding-right: 0px; background: #ffffff; padding-top: 0px&quot;&gt; &lt;li&gt;&lt;span style=&quot;color: #a31515&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;slData&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;DataGridTextColumn&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt; Binding&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt; TypeString}&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&quot; &amp;gt;&lt;/span&gt;  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #a31515&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;sdk&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;DataGridTextColumn.HeaderStyle&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #a31515&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Style&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt; TargetType&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;primitives:DataGridColumnHeader&quot; &amp;gt;&lt;/span&gt;  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #a31515&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Setter&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt; Property&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;ContentTemplate&quot;&amp;gt;&lt;/span&gt;  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #a31515&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Setter.Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #a31515&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;DataTemplate&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #a31515&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;TextBlock&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt; Text&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt; Path&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;=Type,&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt; Source&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;={&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;StaticResource&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt; StringsRes}}&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&quot;/&amp;gt;&lt;/span&gt;  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #a31515&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;DataTemplate&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #a31515&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Setter.Value&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #a31515&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Setter&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #a31515&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Style&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #a31515&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;sdk&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;DataGridTextColumn.HeaderStyle&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt;  &lt;li&gt;&lt;span style=&quot;color: #a31515&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;slData&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;DataGridTextColumn&lt;/span&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;&amp;gt;&lt;/span&gt; &lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;p&gt;Though I am still searching for a generic solution and not something I have to copy paste for each DataGrid Column…&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;//TODO: Check if this was fixed in SL5. If so post the elegant solution&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:038a773f-3909-46aa-aef9-69188eb1c373&quot; class=&quot;wlWriterSmartContent&quot;&gt;IceRocket Tags: &lt;a href=&quot;http://blogs.icerocket.com/search?q=Silverlight&quot; rel=&quot;tag&quot;&gt;Silverlight&lt;/a&gt;&lt;/div&gt;  </content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/285522578420259152'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/285522578420259152'/><link rel='alternate' type='text/html' href='http://dllshepherdnotes.blogspot.com/2011/07/silverlight-binding-resource-to.html' title='Silverlight: Binding Resource to DataGridTextColumn.Header'/><author><name>Roy Dallal</name><uri>http://www.blogger.com/profile/00119182637862451390</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzYa4eUS6sxYWIdkX_Cpnmnz0KV0XcxtEtSA6D0BlTlRnoN1QE-rptKlzZhon1-snMROn8d3eQWTITW9YKwTFat1C3hJrsXuE-BoN0DBalwgiwaUOKDC9m_OihfkWyUQ/s220/MyPhoto.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiG1T4f_ly8mKtD2IssOp7dcaZ9UV6WszD-I1nXSrpMia1nMM4pIfhvwEM6WEcj9bjH2G-0N0pu3eBtjV5qySJQGKjHZTD1a9NWz3KYSWntgWtX-ZXdR5cis26KXda5WpFNCu0JIOwH7ThG/s72-c?imgmax=800" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-6621729207202454780.post-9147946407219753985</id><published>2012-05-09T06:29:00.000-07:00</published><updated>2012-05-09T06:30:40.257-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Final Version"/><category scheme="http://www.blogger.com/atom/ns#" term="VS2010"/><title type='text'>A day without the Debugger</title><content type='html'>&lt;p&gt;This post was moved to &lt;a href=&quot;http://www.dllshepherd.net/&quot; target=&quot;_blank&quot;&gt;my real blog&lt;/a&gt;: &lt;a href=&quot;http://www.dllshepherd.net/2012/05/day-without-debugger.html&quot; target=&quot;_blank&quot;&gt;A day without the Debugger&lt;/a&gt;&lt;/p&gt;  </content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/9147946407219753985'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/9147946407219753985'/><link rel='alternate' type='text/html' href='http://dllshepherdnotes.blogspot.com/2012/05/day-without-debugger.html' title='A day without the Debugger'/><author><name>Roy Dallal</name><uri>http://www.blogger.com/profile/00119182637862451390</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzYa4eUS6sxYWIdkX_Cpnmnz0KV0XcxtEtSA6D0BlTlRnoN1QE-rptKlzZhon1-snMROn8d3eQWTITW9YKwTFat1C3hJrsXuE-BoN0DBalwgiwaUOKDC9m_OihfkWyUQ/s220/MyPhoto.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6621729207202454780.post-733887097402141207</id><published>2012-05-01T02:13:00.000-07:00</published><updated>2012-05-01T02:14:45.601-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Beta"/><category scheme="http://www.blogger.com/atom/ns#" term="ESRI"/><category scheme="http://www.blogger.com/atom/ns#" term="Oracle"/><category scheme="http://www.blogger.com/atom/ns#" term="SDE"/><title type='text'>Polyline wrong coordinates</title><content type='html'>&lt;p&gt;We have been developing for a long time on a single oracle DB Server (Development stage) and recently added a new integration server. Because of time constraints we decided to just copy the data from the Dev server using SQL (out DBA did that part), and since we moved to SDO_GEOMETRY the data can be transferred without the use of ArcDesktop utilities.&lt;/p&gt; &lt;p&gt;So the data was moved correctly and the registration went without a glitch. But when we tried to create a new line in the layer its coordinates moved from (35.5, 32.7) (in x,y) to (–324.4, 32.7). The first thing I checked was my code but there were no changes done and in the old environment everything worked fine. &lt;/p&gt; &lt;p&gt;Looking at the Layers table in the SDE schema that table looked like:&lt;/p&gt; &lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; width=&quot;722&quot;&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td valign=&quot;top&quot; width=&quot;101&quot;&gt; &lt;p&gt;&lt;font style=&quot;background-color: #ffffff&quot;&gt;EFLAGS&lt;/font&gt;&lt;/p&gt;&lt;/td&gt; &lt;p&gt;&lt;font style=&quot;background-color: #ffffff&quot;&gt;&lt;/font&gt;&lt;/p&gt;&lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;110&quot;&gt; &lt;p&gt;&lt;font style=&quot;background-color: #ffffff&quot;&gt;LAYER_MASK&lt;/font&gt;&lt;/p&gt;&lt;/td&gt; &lt;p&gt;&lt;font style=&quot;background-color: #ffffff&quot;&gt;&lt;/font&gt;&lt;/p&gt;&lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;71&quot;&gt; &lt;p&gt;&lt;font style=&quot;background-color: #ffffff&quot;&gt;GSIZE1&lt;/font&gt;&lt;/p&gt;&lt;/td&gt; &lt;p&gt;&lt;font style=&quot;background-color: #ffffff&quot;&gt;&lt;/font&gt;&lt;/p&gt;&lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;69&quot;&gt; &lt;p&gt;&lt;font style=&quot;background-color: #ffffff&quot;&gt;GSIZE2&lt;/font&gt;&lt;/p&gt;&lt;/td&gt; &lt;p&gt;&lt;font style=&quot;background-color: #ffffff&quot;&gt;&lt;/font&gt;&lt;/p&gt;&lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;68&quot;&gt; &lt;p&gt;&lt;font style=&quot;background-color: #ffffff&quot;&gt;GSIZE3&lt;/font&gt;&lt;/p&gt;&lt;/td&gt; &lt;p&gt;&lt;font style=&quot;background-color: #ffffff&quot;&gt;&lt;/font&gt;&lt;/p&gt;&lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;58&quot;&gt; &lt;p&gt;&lt;font style=&quot;background-color: #ffffff&quot;&gt;MINX&lt;/font&gt;&lt;/p&gt;&lt;/td&gt; &lt;p&gt;&lt;font style=&quot;background-color: #ffffff&quot;&gt;&lt;/font&gt;&lt;/p&gt;&lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;50&quot;&gt; &lt;p&gt;&lt;font style=&quot;background-color: #ffffff&quot;&gt;MINY&lt;/font&gt;&lt;/p&gt;&lt;/td&gt; &lt;p&gt;&lt;font style=&quot;background-color: #ffffff&quot;&gt;&lt;/font&gt;&lt;/p&gt;&lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;47&quot;&gt; &lt;p&gt;&lt;font style=&quot;background-color: #ffffff&quot;&gt;MAXX&lt;/font&gt;&lt;/p&gt;&lt;/td&gt; &lt;p&gt;&lt;font style=&quot;background-color: #ffffff&quot;&gt;&lt;/font&gt;&lt;/p&gt;&lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;46&quot;&gt; &lt;p&gt;&lt;font style=&quot;background-color: #ffffff&quot;&gt;MAXY&lt;/font&gt;&lt;/p&gt;&lt;/td&gt; &lt;p&gt;&lt;font style=&quot;background-color: #ffffff&quot;&gt;&lt;/font&gt;&lt;/p&gt;&lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;100&quot;&gt;&lt;font style=&quot;background-color: #ffffff&quot;&gt;LAYER_CONFIG&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td valign=&quot;top&quot; width=&quot;104&quot;&gt; &lt;p&gt;138674317&lt;/p&gt;&lt;/td&gt; &lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;113&quot;&gt;128&lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;73&quot;&gt; &lt;p&gt;-2&lt;/p&gt;&lt;/td&gt; &lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;71&quot;&gt;0&lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;70&quot;&gt;0&lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;60&quot;&gt; &lt;p&gt;-400&lt;/p&gt;&lt;/td&gt; &lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;53&quot;&gt; &lt;p&gt;-400&lt;/p&gt;&lt;/td&gt; &lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;51&quot;&gt; &lt;p&gt;471.3916&lt;/p&gt;&lt;/td&gt; &lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;50&quot;&gt; &lt;p&gt;471.3916&lt;/p&gt;&lt;/td&gt; &lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;100&quot;&gt; &lt;p&gt;SDO_GEOMETRY&lt;/p&gt;&lt;/td&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;p&gt;My first thought was that the –400 somehow affected the data being inserted but the same values were in the old DB and they worked.&lt;/p&gt; &lt;p&gt;After many actions of unregister and register of that layer the problem was solved.&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;TODO: Add table border, it looks bad in the site&lt;/p&gt;  </content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/733887097402141207'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/733887097402141207'/><link rel='alternate' type='text/html' href='http://dllshepherdnotes.blogspot.com/2012/05/polyline-wrong-coordinates.html' title='Polyline wrong coordinates'/><author><name>Roy Dallal</name><uri>http://www.blogger.com/profile/00119182637862451390</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzYa4eUS6sxYWIdkX_Cpnmnz0KV0XcxtEtSA6D0BlTlRnoN1QE-rptKlzZhon1-snMROn8d3eQWTITW9YKwTFat1C3hJrsXuE-BoN0DBalwgiwaUOKDC9m_OihfkWyUQ/s220/MyPhoto.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6621729207202454780.post-6913278731968633156</id><published>2012-03-06T12:55:00.000-08:00</published><updated>2012-03-06T12:57:07.300-08:00</updated><title type='text'>Notes: Order of posts to complete – 6/3/2012</title><content type='html'>&lt;p&gt;As I &lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/hello-test.html&quot; target=&quot;_blank&quot;&gt;said before&lt;/a&gt; this is not my real blog just a place holder for the drafts for my &lt;a href=&quot;http://www.dllshepherd.net/&quot; target=&quot;_blank&quot;&gt;real blog&lt;/a&gt;. Subscribers should note that the blog posts are being updated on the fly, so use a feed reader that can handle this (Google Reader will not mark the post differently for updated posts). &lt;/p&gt; &lt;p&gt;I am sure some of you are wondering why I don’t post some of the more complete posts and for those posts I simply would like to post them in a certain order. It’s like writing a story I can’t really post on FluentMigrator before I write about the SDE or ArcObjects (since extending FluentMigrator is all about using ArcObjects to deploy the SDE).&lt;/p&gt; &lt;p&gt;Since at this point in time I have 55 draft posts I decided to add categories to the posts:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;????? – haven’t reviewed the post  &lt;li&gt;Title Draft – only has a title and lots of TODOs  &lt;li&gt;Draft – has some text but the text is rough  &lt;li&gt;Beta – almost ready: spelling, ordering, checking the grammar…  &lt;li&gt;Post In Wait – waiting for another post before posting&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;I have also decided to post the exceptions/error solving posts without waiting for background posts (if they are ready). Since they are mostly posts I am not going to edit.&lt;/p&gt; &lt;p&gt;I have decided to write here the order of the Notes’ drafts I am going to work on:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/unit-tests-what-to-test.html&quot;&gt;Unit Tests: What to Test?&lt;/a&gt;&amp;nbsp; - Draft: code, go over all the cases, add my Resharper template, TODOs&amp;nbsp; &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/unit-test-code-coverage.html&quot;&gt;Unit Test Code Coverage&lt;/a&gt; – Title Draft: even the TODOs are rough…  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/to-rhino-or-not-to-rhino.html&quot;&gt;To Rhino or not to Rhino?&lt;/a&gt; – Draft: code, font, the explanations are too short  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/tracking-down-simple-bug.html&quot;&gt;Tracking down a simple bug&lt;/a&gt; - Draft: code, font, draw the examples  &lt;li&gt;TODO: ArcObjects: WorkspaceUtils  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/file-geodatabase-getting-workspace.html&quot;&gt;File GeoDatabase: Getting the Workspace&lt;/a&gt; – Draft: might need to split to 2 posts  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/multithreading-with-arcobjects.html&quot;&gt;Multithreading with ArcObjects&lt;/a&gt; – Draft: font, code, TODOs  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/refactoring-esri-making-examples.html&quot; target=&quot;_blank&quot;&gt;Refactoring ESRI: Making the Examples Readable, Part 1&lt;/a&gt; – Draft: continue the example, maybe remove the first refactor result ( just keep the number of lines), to many text strings in the end code – move to consts &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/mocking-esri-testing-wise.html&quot;&gt;Mocking ESRI (testing wise)&lt;/a&gt; – Title Draft: even the TODOs are rough… Though the title is just right!  &lt;li&gt;TODO: SQL  &lt;li&gt;TODO: SQL Server  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/arcsdeconnection-to-geodatabase.html&quot;&gt;ArcSDE–Connection to the Geodatabase&lt;/a&gt; – Draft: write how to get the service number, images in old style, remove del tags  &lt;li&gt;TODO: ArcSDE: Different DB types  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/sde-look-at-layer-table-structure.html&quot;&gt;SDE – A look at the layer table structure&lt;/a&gt; – Draft: images, font, write about deleting features and triggers  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/reading-sde-queries.html&quot;&gt;Reading SDE queries&lt;/a&gt; – Draft: images, font, weird characters, SQL, del tags, grammer  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/deleting-sde-left-over-tables.html&quot;&gt;Deleting SDE left over tables&lt;/a&gt; – Draft: images, font, SQL, rewrite query  &lt;li&gt;TODO: WorkspaceProvider  &lt;li&gt;TODO: WorkspaceUtils  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/working-with-cad-files-in-arcobjects.html&quot;&gt;Working with CAD files in ArcObjects&lt;/a&gt; – Draft: code, links, font  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/upgrading-code-base-from-arcgis-931-to.html&quot;&gt;Upgrading the code base from ArcGIS 9.3.1 to 10&lt;/a&gt; – Beta: images, code, del tags  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/rename-polyline-layer.html&quot;&gt;Rename Polyline layer&lt;/a&gt; – Beta: code, font  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/arcsdeadding-domains-from-code.html&quot;&gt;ArcSDE–Adding domains from code&lt;/a&gt; – Beta: refactor the code  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/simplify-and-arcengine-license.html&quot;&gt;Simplify and the ArcEngine license&lt;/a&gt; – Draft: code, font, images, name should be different  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/esri-license-error.html&quot;&gt;ESRI License error&lt;/a&gt; – Draft: code, font, images, name should be different  &lt;li&gt;TODO: ArcGIS Server Introduction  &lt;li&gt;TODO: ArcGIS Server Publish mxd  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/arcgis-server-layer-problem-db-is-down.html&quot;&gt;ArcGIS Server layer problem (DB is down)&lt;/a&gt; – Beta: font, images, post clearing cache first, del tags ***  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/restart-arcgis-server-service.html&quot;&gt;Restart ArcGIS Server service&lt;/a&gt; – Beta: font, images, del tags ***  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/calling-arcgis-server-service-model.html&quot;&gt;Calling ArcGIS Server service model&lt;/a&gt; - Beta: font, images, del tags ***  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/address-locator-style-creating.html&quot;&gt;Address Locator Style: Introduction&lt;/a&gt; – Draft: finish a working style before posting this  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/address-locator-style-customizing-guide.html&quot;&gt;Address Locator Style: Customizing Guide&lt;/a&gt; – Draft: finish a working style before posting this  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/address-locator-style-testing.html&quot;&gt;Address Locator Style: Testing&lt;/a&gt; – Draft: finish a working style before posting this  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/fluentmigrator-understanding-framework.html&quot;&gt;FluentMigrator: Understanding the Framework Code&lt;/a&gt; – Draft: TODOs  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/fluentmigrator-extending-framework.html&quot;&gt;FluentMigrator: Extending the Framework&lt;/a&gt; – Draft: not finished  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/arcsdesql-server-tableswhat-is-sdes-and.html&quot;&gt;ArcSDE/SQL Server Tables–What is Sde’s and what is Regular&lt;/a&gt; – Beta: SQL query, del tags, post after FM  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/stuck-database-joy.html&quot;&gt;Stuck Database – the JOY!&lt;/a&gt; – Beta: font, images, maybe add a conclusion, post after intro to FM  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/vs2010-project-type-is-not-supported-by.html&quot;&gt;VS2010: “The project type is not supported by this...&lt;/a&gt; – Beta: cut the post (won’t continue to work on it), images, font ***  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/02/silverlight-memory-leak-part-3.html&quot; target=&quot;_blank&quot;&gt;Silverlight Memory Leak, Part 3&lt;/a&gt; – ?????  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/02/silverlight-memory-leak-part-4.html&quot; target=&quot;_blank&quot;&gt;Silverlight Memory Leak, Part 4&lt;/a&gt; – ?????&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;I have some more posts to which I haven’t decided the order:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/coded-ui-testing-for-silverlight.html&quot; target=&quot;_blank&quot;&gt;Coded UI testing for Silverlight application&lt;/a&gt; – Draft: really rough, font, images  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/iis-is-deaderror-5011.html&quot;&gt;Silverlight ESRI App - IIS is dead–Error 5011&lt;/a&gt; – Draft: TODOs, wrong date, del tags  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/intellitrace.html&quot; target=&quot;_blank&quot;&gt;IntelliTrace:&lt;/a&gt; – Draft: still rough  &lt;li&gt;TODO: Using DotTrace  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/02/silverlight-error-connecting-to-wcf.html&quot; target=&quot;_blank&quot;&gt;Silverlight error connecting to WCF&lt;/a&gt; – ?????  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/02/rebuild-all-failed-without-any-errors.html&quot; target=&quot;_blank&quot;&gt;Rebuild All failed without any errors (Silverlight), Part 2&lt;/a&gt; – ?????  &lt;li&gt;TODO: Probability, Why do I need it?  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/linq2sql-changing-database-schema-at.html&quot; target=&quot;_blank&quot;&gt;Linq2Sql: Changing the Database Schema at Runtime (without XMLs)&lt;/a&gt; – Draft: still waiting for a solution  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/04/silverlight-adding-google-streets-view.html&quot; target=&quot;_blank&quot;&gt;Silverlight: Adding Google Streets View, part 2&lt;/a&gt; – ?????  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/04/linq-and-wcf.html&quot; target=&quot;_blank&quot;&gt;LINQ and WCF&lt;/a&gt; – ?????  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/04/game-programming-with-xna.html&quot; target=&quot;_blank&quot;&gt;Game Programming with XNA&lt;/a&gt; – ????  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/02/http-error-503-service-is-unavailable.html&quot; target=&quot;_blank&quot;&gt;HTTP Error 503. The service is unavailable.&lt;/a&gt; – ?????  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/04/combining-wmv-videos.html&quot; target=&quot;_blank&quot;&gt;Combining WMV Videos&lt;/a&gt; – ????&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;Posts that I might not post:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/writing-windows-live-writer-plugin.html&quot; target=&quot;_blank&quot;&gt;Writing a Windows Live Writer Plugin&lt;/a&gt; – Draft: didn’t write one…, images, del tags, ice tags  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/windows-live-writer-tag-providers-part.html&quot; target=&quot;_blank&quot;&gt;Windows Live Writer: Tag providers, Part 2&lt;/a&gt; – need to go over all the tag providers and need to get a response from some of them so it might take some time, &lt;a href=&quot;http://technorati.com/&quot;&gt;Technorati&lt;/a&gt; is still giving me hard times.  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/offline-blog-writing-applications.html&quot;&gt;Offline Blog Writing Applications&lt;/a&gt; - Draft  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/library-example.html&quot;&gt;The Library example&lt;/a&gt; – Haven’t decided on posting this or not might change it to sheep and shepherds…  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/01/python-introduction.html&quot;&gt;Python – Introduction&lt;/a&gt; – Draft: just not written well  &lt;li&gt;&lt;a href=&quot;http://dllshepherdnotes.blogspot.com/2011/02/silverlight-4.html&quot; target=&quot;_blank&quot;&gt;Silverlight 4&lt;/a&gt; – more for me…&lt;!--EndFragment--&gt;&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;I think that’s enough for now…&lt;/p&gt;  </content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/6913278731968633156'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/6913278731968633156'/><link rel='alternate' type='text/html' href='http://dllshepherdnotes.blogspot.com/2012/03/notes-order-of-posts-to-complete-332012.html' title='Notes: Order of posts to complete – 6/3/2012'/><author><name>Roy Dallal</name><uri>http://www.blogger.com/profile/00119182637862451390</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzYa4eUS6sxYWIdkX_Cpnmnz0KV0XcxtEtSA6D0BlTlRnoN1QE-rptKlzZhon1-snMROn8d3eQWTITW9YKwTFat1C3hJrsXuE-BoN0DBalwgiwaUOKDC9m_OihfkWyUQ/s220/MyPhoto.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6621729207202454780.post-3738086505477788082</id><published>2012-03-06T12:52:00.000-08:00</published><updated>2012-03-06T12:54:34.180-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ArcObjects"/><category scheme="http://www.blogger.com/atom/ns#" term="Draft"/><category scheme="http://www.blogger.com/atom/ns#" term="ESRI"/><title type='text'>Refactoring ESRI: Making the Examples Readable, Part 1</title><content type='html'>&lt;p&gt;This is the refactor for ESRI &lt;a href=&quot;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//0001000004pm000000&quot; target=&quot;_blank&quot;&gt;example&lt;/a&gt; for creating an Address Locator in a Personal GeoDatabase:&lt;/p&gt; &lt;p&gt;&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:162b1382-429b-4ed9-90dc-fa4405e5fc6b&quot; class=&quot;wlWriterSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;background: #ddd; overflow: auto&quot;&gt; &lt;ol style=&quot;padding-bottom: 0px; margin: 0px 0px 0px 2.5em; padding-left: 5px; padding-right: 0px; background: #ffffff; padding-top: 0px&quot;&gt; &lt;li&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #008b8b&quot;&gt;AddressLocatorPersonalGDBViaArcObjects&lt;/span&gt;()  &lt;li class=&quot;even&quot;&gt;{  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #008000&quot;&gt;// Open the default local locator workspace to get the locator style.&lt;/span&gt;  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #00008b&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #00008b&quot;&gt;Object&lt;/span&gt; obj = &lt;span style=&quot;color: #00008b&quot;&gt;Activator&lt;/span&gt;.&lt;span style=&quot;color: #008b8b&quot;&gt;CreateInstance&lt;/span&gt;(&lt;span style=&quot;color: #00008b&quot;&gt;Type&lt;/span&gt;.&lt;span style=&quot;color: #008b8b&quot;&gt;GetTypeFromProgID&lt;/span&gt;(  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #a31515&quot;&gt;&quot;esriLocation.LocatorManager&quot;&lt;/span&gt;));  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #00008b&quot;&gt;ILocatorManager2&lt;/span&gt; locatorManager2 = obj &lt;span style=&quot;color: #0000ff&quot;&gt;as&lt;/span&gt; &lt;span style=&quot;color: #00008b&quot;&gt;ILocatorManager2&lt;/span&gt;;  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #00008b&quot;&gt;ILocatorWorkspace&lt;/span&gt; locatorWorkspace = locatorManager2.&lt;span style=&quot;color: #008b8b&quot;&gt;GetLocatorWorkspaceFromPath&lt;/span&gt;  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;span style=&quot;color: #a31515&quot;&gt;&quot;&quot;&lt;/span&gt;);  &lt;li&gt;&amp;nbsp; &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #008000&quot;&gt;// Get the locator style to base the new locator.&lt;/span&gt;  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #00008b&quot;&gt;ILocatorStyle&lt;/span&gt; locatorStyle = locatorWorkspace.&lt;span style=&quot;color: #008b8b&quot;&gt;GetLocatorStyle&lt;/span&gt;(  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #a31515&quot;&gt;&quot;US Address - Dual Ranges&quot;&lt;/span&gt;);  &lt;li&gt;&amp;nbsp; &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #008000&quot;&gt;// Open the feature class to use as reference data.&lt;/span&gt;  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #00008b&quot;&gt;IWorkspaceFactory2&lt;/span&gt; workspaceFactory2 = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #00008b&quot;&gt;AccessWorkspaceFactoryClass&lt;/span&gt;();  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #00008b&quot;&gt;IWorkspace&lt;/span&gt; workspace = workspaceFactory2.&lt;span style=&quot;color: #008b8b&quot;&gt;OpenFromFile&lt;/span&gt;(  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #a31515&quot;&gt;@&quot;D:\workspace\arcobjects\location\redlands.mdb&quot;&lt;/span&gt;,  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0);  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #00008b&quot;&gt;IFeatureWorkspace&lt;/span&gt; featureWorkspace = (&lt;span style=&quot;color: #00008b&quot;&gt;IFeatureWorkspace&lt;/span&gt;) workspace;  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #00008b&quot;&gt;IFeatureClass&lt;/span&gt; featureClass = featureWorkspace.&lt;span style=&quot;color: #008b8b&quot;&gt;OpenFeatureClass&lt;/span&gt;(&lt;span style=&quot;color: #a31515&quot;&gt;&quot;Streets&quot;&lt;/span&gt;);  &lt;li&gt;&amp;nbsp; &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #008000&quot;&gt;// Set the feature class as the primary reference data table for the locator.&lt;/span&gt;  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #00008b&quot;&gt;IDataset&lt;/span&gt; dataset = (&lt;span style=&quot;color: #00008b&quot;&gt;IDataset&lt;/span&gt;) featureClass;  &lt;li class=&quot;even&quot;&gt;&amp;nbsp; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #00008b&quot;&gt;IReferenceDataTables&lt;/span&gt; referenceDataTables = (&lt;span style=&quot;color: #00008b&quot;&gt;IReferenceDataTables&lt;/span&gt;) locatorStyle;  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #00008b&quot;&gt;IEnumReferenceDataTable&lt;/span&gt; enumReferenceDataTable = referenceDataTables.&lt;span style=&quot;color: #800080&quot;&gt;Tables&lt;/span&gt;;  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; enumReferenceDataTable.&lt;span style=&quot;color: #008b8b&quot;&gt;Reset&lt;/span&gt;();  &lt;li class=&quot;even&quot;&gt;&amp;nbsp; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #00008b&quot;&gt;IReferenceDataTable&lt;/span&gt; referenceDataTable = enumReferenceDataTable.&lt;span style=&quot;color: #008b8b&quot;&gt;Next&lt;/span&gt;();  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #00008b&quot;&gt;IReferenceDataTableEdit&lt;/span&gt; referenceDataTableEdit = (&lt;span style=&quot;color: #00008b&quot;&gt;IReferenceDataTableEdit&lt;/span&gt;)  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; referenceDataTable;  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #00008b&quot;&gt;IName&lt;/span&gt; name = dataset.&lt;span style=&quot;color: #800080&quot;&gt;FullName&lt;/span&gt;;  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; referenceDataTableEdit.&lt;span style=&quot;color: #800080&quot;&gt;Name_2&lt;/span&gt; = (&lt;span style=&quot;color: #00008b&quot;&gt;ITableName&lt;/span&gt;) name;  &lt;li class=&quot;even&quot;&gt;&amp;nbsp; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #008000&quot;&gt;// Store the new locator in the same workspace as the reference data.&lt;/span&gt;  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (referenceDataTables.&lt;span style=&quot;color: #800080&quot;&gt;HasEnoughInfo&lt;/span&gt;)  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; locatorWorkspace = locatorManager2.&lt;span style=&quot;color: #008b8b&quot;&gt;GetLocatorWorkspaceFromPath&lt;/span&gt;(  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #a31515&quot;&gt;@&quot;D:\workspace\arcobjects\location\redlands.mdb&quot;&lt;/span&gt;);  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #00008b&quot;&gt;ILocator&lt;/span&gt; locator = locatorWorkspace.&lt;span style=&quot;color: #008b8b&quot;&gt;AddLocator&lt;/span&gt;(&lt;span style=&quot;color: #a31515&quot;&gt;&quot;New Redlands Locator&quot;&lt;/span&gt;,  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;span style=&quot;color: #00008b&quot;&gt;ILocator&lt;/span&gt;) locatorStyle, &lt;span style=&quot;color: #a31515&quot;&gt;&quot;&quot;&lt;/span&gt;, &lt;span style=&quot;color: #0000ff&quot;&gt;null&lt;/span&gt;);  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }  &lt;li&gt;} &lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;p&gt;&lt;/p&gt; &lt;p&gt;The first order of business is refactoring this method.&lt;/p&gt; &lt;p&gt;The first thing to go was this:&lt;/p&gt; &lt;p&gt;&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:ce102d5b-3929-4dcf-9f8c-1d029d801160&quot; class=&quot;wlWriterSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;background: #ddd; overflow: auto&quot;&gt; &lt;ol style=&quot;padding-bottom: 0px; margin: 0px 0px 0px 2em; padding-left: 5px; padding-right: 0px; background: #ffffff; padding-top: 0px&quot;&gt; &lt;li&gt;&lt;span style=&quot;color: #00008b&quot;&gt;IFeatureClass&lt;/span&gt; featureClass = featureWorkspace.&lt;span style=&quot;color: #008b8b&quot;&gt;OpenFeatureClass&lt;/span&gt;(&lt;span style=&quot;color: #a31515&quot;&gt;&quot;Streets&quot;&lt;/span&gt;);  &lt;li class=&quot;even&quot;&gt;&amp;nbsp; &lt;li&gt;&lt;span style=&quot;color: #008000&quot;&gt;// Set the feature class as the primary reference data table for the locator.&lt;/span&gt;  &lt;li class=&quot;even&quot;&gt;&lt;span style=&quot;color: #00008b&quot;&gt;IDataset&lt;/span&gt; dataset = (&lt;span style=&quot;color: #00008b&quot;&gt;IDataset&lt;/span&gt;) featureClass; &lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;p&gt;&lt;/p&gt; &lt;p&gt;To:&lt;/p&gt; &lt;p&gt;&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:842f76cd-c2a9-471f-b9ef-a204065a63e7&quot; class=&quot;wlWriterSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;background: #ddd; overflow: auto&quot;&gt; &lt;ol style=&quot;padding-bottom: 0px; margin: 0px 0px 0px 2em; padding-left: 5px; padding-right: 0px; background: #ffffff; padding-top: 0px&quot;&gt; &lt;li&gt;&lt;span style=&quot;color: #00008b&quot;&gt;IDataset&lt;/span&gt; dataset = (&lt;span style=&quot;color: #00008b&quot;&gt;IDataset&lt;/span&gt;)featureWorkspace.&lt;span style=&quot;color: #008b8b&quot;&gt;OpenFeatureClass&lt;/span&gt;(&lt;span style=&quot;color: #a31515&quot;&gt;&quot;Streets&quot;&lt;/span&gt;); &lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;p&gt;&lt;/p&gt; &lt;p&gt;There was a few other things like: referenceDataTable-&amp;gt;referenceDataTableEdit, &lt;/p&gt; &lt;p&gt;The end result was:&lt;/p&gt; &lt;p&gt;&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:f7d7af09-df3d-44f1-b752-f346343c786e&quot; class=&quot;wlWriterSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;background: #ddd; overflow: auto&quot;&gt; &lt;ol style=&quot;padding-bottom: 0px; margin: 0px 0px 0px 2.5em; padding-left: 5px; padding-right: 0px; background: #ffffff; padding-top: 0px&quot;&gt; &lt;li&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #008b8b&quot;&gt;AddressLocatorPersonalGDBViaArcObjects&lt;/span&gt;()  &lt;li class=&quot;even&quot;&gt;{  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #008000&quot;&gt;// Open the default local locator workspace to get the locator style.&lt;/span&gt;  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #00008b&quot;&gt;System&lt;/span&gt;.&lt;span style=&quot;color: #00008b&quot;&gt;Object&lt;/span&gt; obj = &lt;span style=&quot;color: #00008b&quot;&gt;Activator&lt;/span&gt;.&lt;span style=&quot;color: #008b8b&quot;&gt;CreateInstance&lt;/span&gt;(&lt;span style=&quot;color: #00008b&quot;&gt;Type&lt;/span&gt;.&lt;span style=&quot;color: #008b8b&quot;&gt;GetTypeFromProgID&lt;/span&gt;(  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #a31515&quot;&gt;&quot;esriLocation.LocatorManager&quot;&lt;/span&gt;));  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; locatorManager2 = obj &lt;span style=&quot;color: #0000ff&quot;&gt;as&lt;/span&gt; &lt;span style=&quot;color: #00008b&quot;&gt;ILocatorManager2&lt;/span&gt;;  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; locatorWorkspace = locatorManager2.&lt;span style=&quot;color: #008b8b&quot;&gt;GetLocatorWorkspaceFromPath&lt;/span&gt;  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;span style=&quot;color: #a31515&quot;&gt;&quot;&quot;&lt;/span&gt;);  &lt;li&gt;&amp;nbsp; &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #008000&quot;&gt;// Get the locator style to base the new locator.&lt;/span&gt;  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; locatorStyle = locatorWorkspace.&lt;span style=&quot;color: #008b8b&quot;&gt;GetLocatorStyle&lt;/span&gt;(  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #a31515&quot;&gt;&quot;US Address - Dual Ranges&quot;&lt;/span&gt;);  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #008000&quot;&gt;// Open the feature class to use as reference data.&lt;/span&gt;  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #00008b&quot;&gt;IWorkspaceFactory2&lt;/span&gt; workspaceFactory2 = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #00008b&quot;&gt;AccessWorkspaceFactoryClass&lt;/span&gt;();  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; featureWorkspace = (&lt;span style=&quot;color: #00008b&quot;&gt;IFeatureWorkspace&lt;/span&gt;)workspaceFactory2.&lt;span style=&quot;color: #008b8b&quot;&gt;OpenFromFile&lt;/span&gt;(  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #a31515&quot;&gt;@&quot;D:\workspace\arcobjects\location\redlands.mdb&quot;&lt;/span&gt;,  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0);  &lt;li class=&quot;even&quot;&gt;&amp;nbsp; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #008000&quot;&gt;// Set the feature class as the primary reference data table for the locator.&lt;/span&gt;  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; dataset = (&lt;span style=&quot;color: #00008b&quot;&gt;IDataset&lt;/span&gt;)featureWorkspace.&lt;span style=&quot;color: #008b8b&quot;&gt;OpenFeatureClass&lt;/span&gt;(&lt;span style=&quot;color: #a31515&quot;&gt;&quot;Streets&quot;&lt;/span&gt;);  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; referenceDataTables = (&lt;span style=&quot;color: #00008b&quot;&gt;IReferenceDataTables&lt;/span&gt;)locatorStyle;  &lt;li&gt;&amp;nbsp; &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; enumReferenceDataTable = referenceDataTables.&lt;span style=&quot;color: #800080&quot;&gt;Tables&lt;/span&gt;;  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; enumReferenceDataTable.&lt;span style=&quot;color: #008b8b&quot;&gt;Reset&lt;/span&gt;();  &lt;li class=&quot;even&quot;&gt;&amp;nbsp; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; referenceDataTableEdit = (&lt;span style=&quot;color: #00008b&quot;&gt;IReferenceDataTableEdit&lt;/span&gt;) enumReferenceDataTable.&lt;span style=&quot;color: #008b8b&quot;&gt;Next&lt;/span&gt;();  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; referenceDataTableEdit.&lt;span style=&quot;color: #800080&quot;&gt;Name_2&lt;/span&gt; = (&lt;span style=&quot;color: #00008b&quot;&gt;ITableName&lt;/span&gt;)dataset.&lt;span style=&quot;color: #800080&quot;&gt;FullName&lt;/span&gt;;  &lt;li class=&quot;even&quot;&gt;&amp;nbsp; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #008000&quot;&gt;// Store the new locator in the same workspace as the reference data.&lt;/span&gt;  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (referenceDataTables.&lt;span style=&quot;color: #800080&quot;&gt;HasEnoughInfo&lt;/span&gt;)  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; locatorWorkspace = locatorManager2.&lt;span style=&quot;color: #008b8b&quot;&gt;GetLocatorWorkspaceFromPath&lt;/span&gt;(  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #a31515&quot;&gt;@&quot;D:\workspace\arcobjects\location\redlands.mdb&quot;&lt;/span&gt;);  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; locatorWorkspace.&lt;span style=&quot;color: #008b8b&quot;&gt;AddLocator&lt;/span&gt;(&lt;span style=&quot;color: #a31515&quot;&gt;&quot;New Redlands Locator&quot;&lt;/span&gt;,  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;span style=&quot;color: #00008b&quot;&gt;ILocator&lt;/span&gt;) locatorStyle, &lt;span style=&quot;color: #a31515&quot;&gt;&quot;&quot;&lt;/span&gt;, &lt;span style=&quot;color: #0000ff&quot;&gt;null&lt;/span&gt;);  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }  &lt;li&gt;} &lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;p&gt;&lt;/p&gt; &lt;p&gt;39 lines without any loss of readability, not that it says much – it still not readable!&lt;/p&gt; &lt;p&gt;The next thing to look at is creating the ILocatorManager2, I don’t know about you but I prefer getting an exception about converting than about Null reference:&lt;/p&gt; &lt;p&gt;&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:3bdcc08a-c90f-49b7-be9a-92025d0ab00d&quot; class=&quot;wlWriterSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;background: #fff; overflow: auto&quot;&gt; &lt;ol style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 5px; padding-right: 0px; background: #ffffff; padding-top: 0px&quot;&gt; &lt;li&gt;(&lt;span style=&quot;color: #00008b&quot;&gt;ILocatorManager2&lt;/span&gt;)&lt;span style=&quot;color: #00008b&quot;&gt;Activator&lt;/span&gt;.&lt;span style=&quot;color: #008b8b&quot;&gt;CreateInstance&lt;/span&gt;(&lt;span style=&quot;color: #00008b&quot;&gt;Type&lt;/span&gt;.&lt;span style=&quot;color: #008b8b&quot;&gt;GetTypeFromProgID&lt;/span&gt;(&lt;span style=&quot;color: #a31515&quot;&gt;&quot;esriLocation.LocatorManager&quot;&lt;/span&gt;)); &lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;p&gt;&lt;/p&gt; &lt;p&gt;(that also solved the problem of the ‘obj’ variable naming)&lt;/p&gt; &lt;p&gt;The next part is creating a Utils class for LocatorWorkspace:&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:bdb48f02-4f46-4f96-b57c-0fe631b42508&quot; class=&quot;wlWriterSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;background: #ddd; overflow: auto&quot;&gt; &lt;ol style=&quot;padding-bottom: 0px; margin: 0px 0px 0px 2.5em; padding-left: 5px; padding-right: 0px; background: #ffffff; padding-top: 0px&quot;&gt; &lt;li&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #00008b&quot;&gt;LocatorWorkspaceUtils&lt;/span&gt;  &lt;li class=&quot;even&quot;&gt;{  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #0000ff&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;readonly&lt;/span&gt; &lt;span style=&quot;color: #00008b&quot;&gt;ILocatorManager2&lt;/span&gt; &lt;span style=&quot;color: #800080&quot;&gt;_locatorManager&lt;/span&gt;;  &lt;li class=&quot;even&quot;&gt;&amp;nbsp; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #0000ff&quot;&gt;#region&lt;/span&gt; Singleton  &lt;li class=&quot;even&quot;&gt;&amp;nbsp; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #0000ff&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;readonly&lt;/span&gt; &lt;span style=&quot;color: #00008b&quot;&gt;LocatorWorkspaceUtils&lt;/span&gt; &lt;span style=&quot;color: #800080&quot;&gt;instance&lt;/span&gt; = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #00008b&quot;&gt;LocatorWorkspaceUtils&lt;/span&gt;();  &lt;li class=&quot;even&quot;&gt;&amp;nbsp; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #008000&quot;&gt;// Explicit static constructor to tell C# compiler&lt;/span&gt;  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #008000&quot;&gt;// not to mark type as beforefieldinit&lt;/span&gt;  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #0000ff&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #00008b&quot;&gt;LocatorWorkspaceUtils&lt;/span&gt;()  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }  &lt;li class=&quot;even&quot;&gt;&amp;nbsp; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #0000ff&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #00008b&quot;&gt;LocatorWorkspaceUtils&lt;/span&gt;()  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #800080&quot;&gt;_locatorManager&lt;/span&gt; =  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;span style=&quot;color: #00008b&quot;&gt;ILocatorManager2&lt;/span&gt;)&lt;span style=&quot;color: #00008b&quot;&gt;Activator&lt;/span&gt;.&lt;span style=&quot;color: #008b8b&quot;&gt;CreateInstance&lt;/span&gt;(&lt;span style=&quot;color: #00008b&quot;&gt;Type&lt;/span&gt;.&lt;span style=&quot;color: #008b8b&quot;&gt;GetTypeFromProgID&lt;/span&gt;(&lt;span style=&quot;color: #a31515&quot;&gt;&quot;esriLocation.LocatorManager&quot;&lt;/span&gt;));  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }  &lt;li class=&quot;even&quot;&gt;&amp;nbsp; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #00008b&quot;&gt;LocatorWorkspaceUtils&lt;/span&gt; &lt;span style=&quot;color: #800080&quot;&gt;Instance&lt;/span&gt;  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #008b8b&quot;&gt;get&lt;/span&gt; { &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #800080&quot;&gt;instance&lt;/span&gt;; }  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }  &lt;li&gt;&amp;nbsp; &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #0000ff&quot;&gt;#endregion&lt;/span&gt; &lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;p&gt;It’s singleton with ILocatorManager already set, now the only thing we use it for is:&lt;/p&gt; &lt;p&gt;&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:f2011e6a-eed1-4eaf-8515-503807681aa1&quot; class=&quot;wlWriterSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;background: #ddd; overflow: auto&quot;&gt; &lt;ol style=&quot;padding-bottom: 0px; margin: 0px 0px 0px 2em; padding-left: 5px; padding-right: 0px; background: #ffffff; padding-top: 0px&quot;&gt; &lt;li&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #00008b&quot;&gt;ILocatorWorkspace&lt;/span&gt; &lt;span style=&quot;color: #008b8b&quot;&gt;GetLocatorWorkspace&lt;/span&gt;(&lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; fileLocation)  &lt;li class=&quot;even&quot;&gt;{  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #800080&quot;&gt;_locatorManager&lt;/span&gt;.&lt;span style=&quot;color: #008b8b&quot;&gt;GetLocatorWorkspaceFromPath&lt;/span&gt;(fileLocation);  &lt;li class=&quot;even&quot;&gt;} &lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;p&gt;&lt;/p&gt; &lt;p&gt;Getting the style:&lt;/p&gt; &lt;p&gt;&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:125a4de2-0a1e-442b-9504-3f3d5ce8c4e8&quot; class=&quot;wlWriterSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;background: #ddd; overflow: auto&quot;&gt; &lt;ol style=&quot;padding-bottom: 0px; margin: 0px 0px 0px 2.5em; padding-left: 5px; padding-right: 0px; background: #ffffff; padding-top: 0px&quot;&gt; &lt;li&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #00008b&quot;&gt;ILocatorStyle&lt;/span&gt; &lt;span style=&quot;color: #008b8b&quot;&gt;GetLocatorStyle&lt;/span&gt;(&lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; styleName)  &lt;li class=&quot;even&quot;&gt;{  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #008b8b&quot;&gt;GetLocatorStyle&lt;/span&gt;(styleName, &lt;span style=&quot;color: #a31515&quot;&gt;&quot;&quot;&lt;/span&gt;);  &lt;li class=&quot;even&quot;&gt;}  &lt;li&gt;&amp;nbsp; &lt;li class=&quot;even&quot;&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #00008b&quot;&gt;ILocatorStyle&lt;/span&gt; &lt;span style=&quot;color: #008b8b&quot;&gt;GetLocatorStyle&lt;/span&gt;(&lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; styleName, &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; fileLocation)  &lt;li&gt;{  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; locatorWorkspace = &lt;span style=&quot;color: #008b8b&quot;&gt;GetLocatorWorkspace&lt;/span&gt;(fileLocation);  &lt;li&gt;&amp;nbsp; &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #008000&quot;&gt;// Get the locator style to base the new locator.&lt;/span&gt;  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; locatorWorkspace.&lt;span style=&quot;color: #008b8b&quot;&gt;GetLocatorStyle&lt;/span&gt;(styleName);  &lt;li class=&quot;even&quot;&gt;} &lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;p&gt;&lt;/p&gt; &lt;p&gt;Adding the locator style:&lt;/p&gt; &lt;p&gt;&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:7ba5fd45-ec10-4bad-a0a2-7ec6cc16f235&quot; class=&quot;wlWriterSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;background: #ddd; overflow: auto&quot;&gt; &lt;ol style=&quot;padding-bottom: 0px; margin: 0px 0px 0px 2em; padding-left: 5px; padding-right: 0px; background: #ffffff; padding-top: 0px&quot;&gt; &lt;li&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #008b8b&quot;&gt;AddLocatorStyle&lt;/span&gt;(&lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; styleName, &lt;span style=&quot;color: #0000ff&quot;&gt;string&lt;/span&gt; fileLocation, &lt;span style=&quot;color: #00008b&quot;&gt;ILocator&lt;/span&gt; locatorStyle)  &lt;li class=&quot;even&quot;&gt;{  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; locatorWorkspace = &lt;span style=&quot;color: #008b8b&quot;&gt;GetLocatorWorkspace&lt;/span&gt;(fileLocation);  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; locatorWorkspace.&lt;span style=&quot;color: #008b8b&quot;&gt;AddLocator&lt;/span&gt;(styleName, locatorStyle, &lt;span style=&quot;color: #a31515&quot;&gt;&quot;&quot;&lt;/span&gt;, &lt;span style=&quot;color: #0000ff&quot;&gt;null&lt;/span&gt;);  &lt;li&gt;} &lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;p&gt;&lt;/p&gt; &lt;p&gt;Setting the dataset name in the locator:&lt;/p&gt; &lt;p&gt;&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:cbd064b1-1c89-4064-a9f7-d533dc9151c0&quot; class=&quot;wlWriterSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;background: #ddd; overflow: auto&quot;&gt; &lt;ol style=&quot;padding-bottom: 0px; margin: 0px 0px 0px 2.5em; padding-left: 5px; padding-right: 0px; background: #ffffff; padding-top: 0px&quot;&gt; &lt;li&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #008b8b&quot;&gt;SetLocatorDatasetName&lt;/span&gt;(&lt;span style=&quot;color: #00008b&quot;&gt;IName&lt;/span&gt; datasetName, &lt;span style=&quot;color: #00008b&quot;&gt;ILocatorStyle&lt;/span&gt; locatorStyle)  &lt;li class=&quot;even&quot;&gt;{  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; referenceDataTables = (&lt;span style=&quot;color: #00008b&quot;&gt;IReferenceDataTables&lt;/span&gt;)locatorStyle;  &lt;li class=&quot;even&quot;&gt;&amp;nbsp; &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; enumReferenceDataTable = referenceDataTables.&lt;span style=&quot;color: #800080&quot;&gt;Tables&lt;/span&gt;;  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; enumReferenceDataTable.&lt;span style=&quot;color: #008b8b&quot;&gt;Reset&lt;/span&gt;();  &lt;li&gt;&amp;nbsp; &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; referenceDataTableEdit = (&lt;span style=&quot;color: #00008b&quot;&gt;IReferenceDataTableEdit&lt;/span&gt;)enumReferenceDataTable.&lt;span style=&quot;color: #008b8b&quot;&gt;Next&lt;/span&gt;();  &lt;li&gt;&amp;nbsp; &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #008000&quot;&gt;//var name = new TableNameClass {Name = datasetName};&lt;/span&gt;  &lt;li&gt;&amp;nbsp; &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; referenceDataTableEdit.&lt;span style=&quot;color: #800080&quot;&gt;Name_2&lt;/span&gt; = (&lt;span style=&quot;color: #00008b&quot;&gt;ITableName&lt;/span&gt;)datasetName;  &lt;li&gt;} &lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;p&gt;&lt;/p&gt; &lt;p&gt;Checking if the locator is good to be saved:&lt;/p&gt; &lt;p&gt;&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:9fc2892d-4966-4df4-bd94-e6f98866b0ff&quot; class=&quot;wlWriterSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;background: #ddd; overflow: auto&quot;&gt; &lt;ol style=&quot;padding-bottom: 0px; margin: 0px 0px 0px 2em; padding-left: 5px; padding-right: 0px; background: #ffffff; padding-top: 0px&quot;&gt; &lt;li&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;bool&lt;/span&gt; &lt;span style=&quot;color: #008b8b&quot;&gt;IsLocatorValidForSave&lt;/span&gt;(&lt;span style=&quot;color: #00008b&quot;&gt;ILocatorStyle&lt;/span&gt; locatorStyle)  &lt;li class=&quot;even&quot;&gt;{  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; ((&lt;span style=&quot;color: #00008b&quot;&gt;IReferenceDataTables&lt;/span&gt;)locatorStyle).&lt;span style=&quot;color: #800080&quot;&gt;HasEnoughInfo&lt;/span&gt;;  &lt;li class=&quot;even&quot;&gt;} &lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;p&gt;&lt;/p&gt; &lt;p&gt;Now the code looks like:&lt;/p&gt; &lt;p&gt;&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:819c3f4e-e76c-4efb-948e-6362886c6344&quot; class=&quot;wlWriterSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;background: #ddd; overflow: auto&quot;&gt; &lt;ol style=&quot;padding-bottom: 0px; margin: 0px 0px 0px 2.5em; padding-left: 5px; padding-right: 0px; background: #ffffff; padding-top: 0px&quot;&gt; &lt;li&gt;&lt;span style=&quot;color: #0000ff&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #008b8b&quot;&gt;AddressLocatorPersonalGDBViaArcObjects&lt;/span&gt;()  &lt;li class=&quot;even&quot;&gt;{  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #008000&quot;&gt;// Get the locator style to base the new locator.&lt;/span&gt;  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; locatorStyle = &lt;span style=&quot;color: #00008b&quot;&gt;LocatorWorkspaceUtils&lt;/span&gt;.&lt;span style=&quot;color: #800080&quot;&gt;Instance&lt;/span&gt;.&lt;span style=&quot;color: #008b8b&quot;&gt;GetLocatorStyle&lt;/span&gt;(&lt;span style=&quot;color: #a31515&quot;&gt;&quot;US Address - Dual Ranges&quot;&lt;/span&gt;);  &lt;li&gt;&amp;nbsp; &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #008000&quot;&gt;// Open the feature class to use as reference data.&lt;/span&gt;  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #00008b&quot;&gt;IWorkspaceFactory2&lt;/span&gt; workspaceFactory2 = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #00008b&quot;&gt;AccessWorkspaceFactoryClass&lt;/span&gt;();  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; featureWorkspace = (&lt;span style=&quot;color: #00008b&quot;&gt;IFeatureWorkspace&lt;/span&gt;)workspaceFactory2.&lt;span style=&quot;color: #008b8b&quot;&gt;OpenFromFile&lt;/span&gt;(  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #a31515&quot;&gt;@&quot;D:\workspace\arcobjects\location\redlands.mdb&quot;&lt;/span&gt;,  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0);  &lt;li&gt;&amp;nbsp; &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #008000&quot;&gt;// Set the feature class as the primary reference data table for the locator.&lt;/span&gt;  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; dataset = (&lt;span style=&quot;color: #00008b&quot;&gt;IDataset&lt;/span&gt;)featureWorkspace.&lt;span style=&quot;color: #008b8b&quot;&gt;OpenFeatureClass&lt;/span&gt;(&lt;span style=&quot;color: #a31515&quot;&gt;&quot;Streets&quot;&lt;/span&gt;);  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #00008b&quot;&gt;LocatorWorkspaceUtils&lt;/span&gt;.&lt;span style=&quot;color: #800080&quot;&gt;Instance&lt;/span&gt;.&lt;span style=&quot;color: #008b8b&quot;&gt;SetLocatorDatasetName&lt;/span&gt;(dataset.&lt;span style=&quot;color: #800080&quot;&gt;FullName&lt;/span&gt;, locatorStyle);  &lt;li&gt;&amp;nbsp; &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (&lt;span style=&quot;color: #00008b&quot;&gt;LocatorWorkspaceUtils&lt;/span&gt;.&lt;span style=&quot;color: #800080&quot;&gt;Instance&lt;/span&gt;.&lt;span style=&quot;color: #008b8b&quot;&gt;IsLocatorValidForSave&lt;/span&gt;(locatorStyle))  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #00008b&quot;&gt;LocatorWorkspaceUtils&lt;/span&gt;.&lt;span style=&quot;color: #800080&quot;&gt;Instance&lt;/span&gt;.&lt;span style=&quot;color: #008b8b&quot;&gt;AddLocatorStyle&lt;/span&gt;(&lt;span style=&quot;color: #a31515&quot;&gt;&quot;New Redlands Locator&quot;&lt;/span&gt;,  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #a31515&quot;&gt;@&quot;D:\workspace\arcobjects\location\redlands.mdb&quot;&lt;/span&gt;,  &lt;li class=&quot;even&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;span style=&quot;color: #00008b&quot;&gt;ILocator&lt;/span&gt;)locatorStyle);  &lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }  &lt;li class=&quot;even&quot;&gt;} &lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;p&gt;&lt;/p&gt; &lt;p&gt;Now something seems a bit off here, the only reason we open the workspace for the MDB file is to get the dataset FullName, WTF?!? Why not just pass the name as a… wait for it… string?&lt;/p&gt; &lt;p&gt;TODO: continue this &lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Keywords: ESRI, ArcObjects, refactor&lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:8616a372-746b-47c2-b376-93b4ec99ca7b&quot; class=&quot;wlWriterSmartContent&quot;&gt;IceRocket Tags: &lt;a href=&quot;http://blogs.icerocket.com/search?q=ESRI&quot; rel=&quot;tag&quot;&gt;ESRI&lt;/a&gt;,&lt;a href=&quot;http://blogs.icerocket.com/search?q=ArcObjects&quot; rel=&quot;tag&quot;&gt;ArcObjects&lt;/a&gt;,&lt;a href=&quot;http://blogs.icerocket.com/search?q=refactor&quot; rel=&quot;tag&quot;&gt;refactor&lt;/a&gt;&lt;/div&gt;  </content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/3738086505477788082'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/3738086505477788082'/><link rel='alternate' type='text/html' href='http://dllshepherdnotes.blogspot.com/2011/01/refactoring-esri-making-examples.html' title='Refactoring ESRI: Making the Examples Readable, Part 1'/><author><name>Roy Dallal</name><uri>http://www.blogger.com/profile/00119182637862451390</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzYa4eUS6sxYWIdkX_Cpnmnz0KV0XcxtEtSA6D0BlTlRnoN1QE-rptKlzZhon1-snMROn8d3eQWTITW9YKwTFat1C3hJrsXuE-BoN0DBalwgiwaUOKDC9m_OihfkWyUQ/s220/MyPhoto.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6621729207202454780.post-7079549840205958</id><published>2012-03-06T08:25:00.000-08:00</published><updated>2012-03-06T08:26:08.011-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Draft"/><category scheme="http://www.blogger.com/atom/ns#" term="Entity Framework"/><category scheme="http://www.blogger.com/atom/ns#" term="Oracle"/><title type='text'>Bug: Using TimeStamp with Time Zone in (Oracle) Entity Framework</title><content type='html'>&lt;p&gt;For the past week I have been working on the problem of correctly saving TimeStamp with Time Zone in (Oracle) Entity Framework. The problem is both DateTime and OffsetDateTime when saved in that field in the DB are missing a critical info – the location offset given to them. They always save the field with the offset of the client, in my case +02:00.&lt;/p&gt; &lt;p&gt;In the beginning I was sure it was something that will be easily fixed, simply because I came through &lt;a href=&quot;http://stackoverflow.com/q/8988370/262099&quot; target=&quot;_blank&quot;&gt;this StackOverFlow question/answer&lt;/a&gt; which talked about changing the numeric data type so that bool is number(1,0). So I was sure it was a generic interface, well its not! &lt;/p&gt; &lt;p&gt;Looking into Oracle’s EFOracleProviderServices decompiled source (using &lt;a href=&quot;http://www.jetbrains.com/decompiler/&quot; target=&quot;_blank&quot;&gt;JetBrains’s dotPeek&lt;/a&gt;) I tried looking for config values but instead found the bug in Oracle: &lt;/p&gt; &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:1fb9dda1-017d-49f9-9ec3-ff1c035c3f70&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt; &lt;div class=&quot;le-pavsc-container&quot;&gt; &lt;div style=&quot;background: #fff; overflow: auto&quot;&gt; &lt;ol style=&quot;background: #ffffff; margin: 0; padding: 0 0 0 5px;&quot;&gt; &lt;li&gt;&lt;span style=&quot;color:#0000ff&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color:#000000&quot;&gt; OracleParameter(name, (&lt;/span&gt;&lt;span style=&quot;color:#0000ff&quot;&gt;object&lt;/span&gt;&lt;span style=&quot;color:#000000&quot;&gt;) ((DateTimeOffset) value).DateTime))&lt;/span&gt;&lt;/li&gt; &lt;/ol&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;p&gt;Meaning that although you might have gone into the trouble of creating a DateTimeOffset (with no trouble at all), Oracle just knows what’s best and will convert it to DateTime (plus enable a boolean that will later convert it back to offset).&lt;/p&gt; &lt;p&gt;I have tried using Open Source Providers but so far no luck (had problem finding the provider or it wasn’t in .net 4.0), I will try again tomorrow.&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;http://eforacleodpprovider.codeplex.com&quot;&gt;http://eforacleodpprovider.codeplex.com&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a title=&quot;http://archive.msdn.microsoft.com/EFOracleProvider/Release/ProjectReleases.aspx?ReleaseId=1395&quot; href=&quot;http://archive.msdn.microsoft.com/EFOracleProvider/Release/ProjectReleases.aspx?ReleaseId=1395&quot;&gt;http://archive.msdn.microsoft.com/EFOracleProvider/Release/ProjectReleases.aspx?ReleaseId=1395&lt;/a&gt;&lt;/p&gt; &lt;p&gt;//TODO: Continue this&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Resources:&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;http://stackoverflow.com/q/8988370/262099&quot; target=&quot;_blank&quot;&gt;StackOverFlow: Where do I put Oracle EntityFramework Mapping settings for LinqPad?&lt;/a&gt;&lt;/p&gt;  </content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/7079549840205958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/7079549840205958'/><link rel='alternate' type='text/html' href='http://dllshepherdnotes.blogspot.com/2012/03/bug-using-timestamp-with-time-zone-in.html' title='Bug: Using TimeStamp with Time Zone in (Oracle) Entity Framework'/><author><name>Roy Dallal</name><uri>http://www.blogger.com/profile/00119182637862451390</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzYa4eUS6sxYWIdkX_Cpnmnz0KV0XcxtEtSA6D0BlTlRnoN1QE-rptKlzZhon1-snMROn8d3eQWTITW9YKwTFat1C3hJrsXuE-BoN0DBalwgiwaUOKDC9m_OihfkWyUQ/s220/MyPhoto.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6621729207202454780.post-8166747606963601343</id><published>2012-03-04T08:54:00.000-08:00</published><updated>2012-03-04T08:55:35.884-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Beginners"/><category scheme="http://www.blogger.com/atom/ns#" term="Final Version"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>Selecting Distinct Rows</title><content type='html'>&lt;p&gt;This post was moved to &lt;a href=&quot;http://www.dllshepherd.net/&quot; target=&quot;_blank&quot;&gt;my real blog&lt;/a&gt;: &lt;a href=&quot;http://www.dllshepherd.net/2012/03/selecting-distinct-rows.html&quot; target=&quot;_blank&quot;&gt;Selecting Distinct Rows&lt;/a&gt;&lt;/p&gt;  </content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/8166747606963601343'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/8166747606963601343'/><link rel='alternate' type='text/html' href='http://dllshepherdnotes.blogspot.com/2011/01/selecting-distinct-rows.html' title='Selecting Distinct Rows'/><author><name>Roy Dallal</name><uri>http://www.blogger.com/profile/00119182637862451390</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzYa4eUS6sxYWIdkX_Cpnmnz0KV0XcxtEtSA6D0BlTlRnoN1QE-rptKlzZhon1-snMROn8d3eQWTITW9YKwTFat1C3hJrsXuE-BoN0DBalwgiwaUOKDC9m_OihfkWyUQ/s220/MyPhoto.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6621729207202454780.post-2574182638861304516</id><published>2012-03-03T13:20:00.000-08:00</published><updated>2012-03-03T13:21:59.723-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Final Version"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008"/><title type='text'>SQL Server 2008–Forget a user/password</title><content type='html'>This post was moved to my &lt;a href=&quot;http://www.dllshepherd.net/&quot; target=&quot;_blank&quot;&gt;real blog&lt;/a&gt;: &lt;a href=&quot;http://www.dllshepherd.net/2012/03/sql-server-2008-forget-userpassword.html&quot; target=&quot;_blank&quot;&gt;SQL Server 2008: Forget a user/password&lt;/a&gt;  </content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/2574182638861304516'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/2574182638861304516'/><link rel='alternate' type='text/html' href='http://dllshepherdnotes.blogspot.com/2011/01/sql-server-2008forget-userpassword.html' title='SQL Server 2008–Forget a user/password'/><author><name>Roy Dallal</name><uri>http://www.blogger.com/profile/00119182637862451390</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzYa4eUS6sxYWIdkX_Cpnmnz0KV0XcxtEtSA6D0BlTlRnoN1QE-rptKlzZhon1-snMROn8d3eQWTITW9YKwTFat1C3hJrsXuE-BoN0DBalwgiwaUOKDC9m_OihfkWyUQ/s220/MyPhoto.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6621729207202454780.post-9056812163311142617</id><published>2012-02-14T00:28:00.000-08:00</published><updated>2012-02-14T00:29:06.963-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Draft"/><category scheme="http://www.blogger.com/atom/ns#" term="Oracle"/><category scheme="http://www.blogger.com/atom/ns#" term="SDE"/><title type='text'>Oracle arcSde view small integer bug</title><content type='html'>&lt;p&gt;I am writing this here just as a reminder.&lt;/p&gt; &lt;p&gt;ArcSde with Oracle (11g&amp;nbsp; maybe all) has a bug where when you create a Feature layer with a small integer column and then create a view out of that table, the view will now have the column as integer.&lt;/p&gt; &lt;p&gt;I have not found a solution for this, except rewriting the code…&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;You can see it in ArcGis Server:&lt;/p&gt; &lt;p&gt;For SQL Server 2008 table: &lt;i&gt;Type: esriFieldTypeSmallInteger&lt;/i&gt;&lt;/p&gt; &lt;p&gt;For Oracle 11g view: &lt;i&gt;Type: esriFieldTypeInteger&lt;/i&gt;&lt;/p&gt;  </content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/9056812163311142617'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/9056812163311142617'/><link rel='alternate' type='text/html' href='http://dllshepherdnotes.blogspot.com/2012/02/oracle-arcsde-view-small-integer-bug.html' title='Oracle arcSde view small integer bug'/><author><name>Roy Dallal</name><uri>http://www.blogger.com/profile/00119182637862451390</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzYa4eUS6sxYWIdkX_Cpnmnz0KV0XcxtEtSA6D0BlTlRnoN1QE-rptKlzZhon1-snMROn8d3eQWTITW9YKwTFat1C3hJrsXuE-BoN0DBalwgiwaUOKDC9m_OihfkWyUQ/s220/MyPhoto.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6621729207202454780.post-442261093475169125</id><published>2012-02-09T10:38:00.000-08:00</published><updated>2012-02-09T10:40:20.744-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Event Viewer"/><category scheme="http://www.blogger.com/atom/ns#" term="Final Version"/><category scheme="http://www.blogger.com/atom/ns#" term="PowerShell"/><title type='text'>PowerShell: Event Viewer saver</title><content type='html'>&lt;p&gt; &lt;p&gt;This post was moved to my &lt;a href=&quot;http://www.dllshepherd.net/&quot; target=&quot;_blank&quot;&gt;real blog&lt;/a&gt;: &lt;a href=&quot;http://www.dllshepherd.net/2012/02/powershell-event-viewer-saver.html&quot; target=&quot;_blank&quot;&gt;PowerShell: Event Viewer saver&lt;/a&gt;&lt;a title=&quot;PowerShell Tutorial 9: Getting Loopy&quot; href=&quot;http://www.powershellpro.com/powershell-tutorial-introduction/logic-using-loops/&quot; target=&quot;_blank&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;/p&gt;  </content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/442261093475169125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/442261093475169125'/><link rel='alternate' type='text/html' href='http://dllshepherdnotes.blogspot.com/2012/02/powershell-event-viewer-view.html' title='PowerShell: Event Viewer saver'/><author><name>Roy Dallal</name><uri>http://www.blogger.com/profile/00119182637862451390</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzYa4eUS6sxYWIdkX_Cpnmnz0KV0XcxtEtSA6D0BlTlRnoN1QE-rptKlzZhon1-snMROn8d3eQWTITW9YKwTFat1C3hJrsXuE-BoN0DBalwgiwaUOKDC9m_OihfkWyUQ/s220/MyPhoto.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6621729207202454780.post-2875507520230333315</id><published>2011-12-18T09:11:00.000-08:00</published><updated>2011-12-18T09:11:48.483-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Beginners"/><category scheme="http://www.blogger.com/atom/ns#" term="ESRI"/><category scheme="http://www.blogger.com/atom/ns#" term="Final Version"/><category scheme="http://www.blogger.com/atom/ns#" term="SDE"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008"/><title type='text'>ArcSDE: Connection to the Geodatabase</title><content type='html'>&lt;p&gt;This post was moved to &lt;a href=&quot;http://www.dllshepherd.net/&quot; target=&quot;_blank&quot;&gt;my real blog&lt;/a&gt;: &lt;a href=&quot;http://www.dllshepherd.net/2011/12/arcsde-connection-to-geodatabase.html&quot; target=&quot;_blank&quot;&gt;ArcSDE: Connection to the Geodatabase&lt;/a&gt;&lt;/p&gt;  </content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/2875507520230333315'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/2875507520230333315'/><link rel='alternate' type='text/html' href='http://dllshepherdnotes.blogspot.com/2011/01/arcsdeconnection-to-geodatabase.html' title='ArcSDE: Connection to the Geodatabase'/><author><name>Roy Dallal</name><uri>http://www.blogger.com/profile/00119182637862451390</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzYa4eUS6sxYWIdkX_Cpnmnz0KV0XcxtEtSA6D0BlTlRnoN1QE-rptKlzZhon1-snMROn8d3eQWTITW9YKwTFat1C3hJrsXuE-BoN0DBalwgiwaUOKDC9m_OihfkWyUQ/s220/MyPhoto.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6621729207202454780.post-7704945268433288578</id><published>2011-12-18T07:06:00.000-08:00</published><updated>2011-12-18T07:07:11.473-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ArcGIS Server"/><category scheme="http://www.blogger.com/atom/ns#" term="ArcObjects"/><category scheme="http://www.blogger.com/atom/ns#" term="ESRI"/><category scheme="http://www.blogger.com/atom/ns#" term="Final Version"/><title type='text'>MSD tools: Changing Connection and Publishing</title><content type='html'>&lt;p&gt;This post was moved to &lt;a href=&quot;http://www.dllshepherd.net/&quot; target=&quot;_blank&quot;&gt;my real blog&lt;/a&gt;: &lt;a href=&quot;http://www.dllshepherd.net/2011/12/msd-tools-changing-connection-and.html&quot; target=&quot;_blank&quot;&gt;MSD tools: Changing Connection and Publishing&lt;/a&gt;&lt;/p&gt;  </content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/7704945268433288578'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/7704945268433288578'/><link rel='alternate' type='text/html' href='http://dllshepherdnotes.blogspot.com/2011/11/last-week-i-got-new-assignment-to.html' title='MSD tools: Changing Connection and Publishing'/><author><name>Roy Dallal</name><uri>http://www.blogger.com/profile/00119182637862451390</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzYa4eUS6sxYWIdkX_Cpnmnz0KV0XcxtEtSA6D0BlTlRnoN1QE-rptKlzZhon1-snMROn8d3eQWTITW9YKwTFat1C3hJrsXuE-BoN0DBalwgiwaUOKDC9m_OihfkWyUQ/s220/MyPhoto.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6621729207202454780.post-7628352841861725443</id><published>2011-12-18T06:08:00.000-08:00</published><updated>2011-12-18T06:08:30.426-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Final Version"/><category scheme="http://www.blogger.com/atom/ns#" term="System"/><title type='text'>Active Window Loses Focus problem (Full Screen minimizes)</title><content type='html'>&lt;p&gt;This post was moved to &lt;a href=&quot;http://www.dllshepherd.net/&quot; target=&quot;_blank&quot;&gt;my real blog&lt;/a&gt;: &lt;a href=&quot;http://www.dllshepherd.net/2011/12/active-window-loses-focus-problem-full.html&quot; target=&quot;_blank&quot;&gt;Active Window Loses Focus problem (Full Screen minimizes)&lt;/a&gt;&lt;/p&gt;  </content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/7628352841861725443'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/7628352841861725443'/><link rel='alternate' type='text/html' href='http://dllshepherdnotes.blogspot.com/2011/11/active-window-loses-focus-problem-full.html' title='Active Window Loses Focus problem (Full Screen minimizes)'/><author><name>Roy Dallal</name><uri>http://www.blogger.com/profile/00119182637862451390</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzYa4eUS6sxYWIdkX_Cpnmnz0KV0XcxtEtSA6D0BlTlRnoN1QE-rptKlzZhon1-snMROn8d3eQWTITW9YKwTFat1C3hJrsXuE-BoN0DBalwgiwaUOKDC9m_OihfkWyUQ/s220/MyPhoto.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6621729207202454780.post-4771347197847262831</id><published>2011-11-23T09:30:00.000-08:00</published><updated>2011-11-23T09:31:03.244-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ArcGIS Server"/><category scheme="http://www.blogger.com/atom/ns#" term="Final Version"/><title type='text'>Clearing ArcGIS Server REST API Cache</title><content type='html'>This post was moved to &lt;a href=&quot;http://www.dllshepherd.net/&quot; target=&quot;_blank&quot;&gt;my real blog&lt;/a&gt;: &lt;a href=&quot;http://www.dllshepherd.net/2011/11/clearing-arcgis-server-rest-api-cache.html&quot; target=&quot;_blank&quot;&gt;Clearing ArcGIS Server REST API Cache&lt;/a&gt;  </content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/4771347197847262831'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/4771347197847262831'/><link rel='alternate' type='text/html' href='http://dllshepherdnotes.blogspot.com/2011/01/clearing-arcgis-server-rest-api-cache.html' title='Clearing ArcGIS Server REST API Cache'/><author><name>Roy Dallal</name><uri>http://www.blogger.com/profile/00119182637862451390</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzYa4eUS6sxYWIdkX_Cpnmnz0KV0XcxtEtSA6D0BlTlRnoN1QE-rptKlzZhon1-snMROn8d3eQWTITW9YKwTFat1C3hJrsXuE-BoN0DBalwgiwaUOKDC9m_OihfkWyUQ/s220/MyPhoto.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6621729207202454780.post-6200701470988128435</id><published>2011-11-15T08:14:00.001-08:00</published><updated>2011-12-26T01:32:45.987-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ArcObjects"/><category scheme="http://www.blogger.com/atom/ns#" term="ESRI"/><category scheme="http://www.blogger.com/atom/ns#" term="Final Version"/><title type='text'>ArcObjects: Workspace Provider</title><content type='html'>&lt;p&gt;This post was moved to &lt;a href=&quot;http://www.dllshepherd.net/&quot; target=&quot;_blank&quot;&gt;my real blog&lt;/a&gt;: &lt;a href=&quot;http://www.dllshepherd.net/2011/12/arcobjects-workspace-provider.html&quot;&gt;ArcObjects: Workspace Provider&lt;/a&gt;&lt;/p&gt;  </content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/6200701470988128435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/6200701470988128435'/><link rel='alternate' type='text/html' href='http://dllshepherdnotes.blogspot.com/2011/11/this-post-is-fifth-post-in-my.html' title='ArcObjects: Workspace Provider'/><author><name>Roy Dallal</name><uri>http://www.blogger.com/profile/00119182637862451390</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzYa4eUS6sxYWIdkX_Cpnmnz0KV0XcxtEtSA6D0BlTlRnoN1QE-rptKlzZhon1-snMROn8d3eQWTITW9YKwTFat1C3hJrsXuE-BoN0DBalwgiwaUOKDC9m_OihfkWyUQ/s220/MyPhoto.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6621729207202454780.post-6416585619329261837</id><published>2011-07-13T04:17:00.000-07:00</published><updated>2011-07-13T04:17:40.710-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Final Version"/><category scheme="http://www.blogger.com/atom/ns#" term="Google Map API"/><category scheme="http://www.blogger.com/atom/ns#" term="Silverlight"/><title type='text'>Silverlight: Adding Google Streets View, part 2</title><content type='html'>This post was moved to &lt;a href=&quot;http://www.dllshepherd.net/&quot; target=&quot;_blank&quot;&gt;my real blog&lt;/a&gt;: &lt;a href=&quot;http://www.dllshepherd.net/2011/07/silverlight-adding-google-streets-view.html&quot; target=&quot;_blank&quot;&gt;Silverlight: Adding Google Streets View, part 2&lt;/a&gt;  </content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/6416585619329261837'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/6416585619329261837'/><link rel='alternate' type='text/html' href='http://dllshepherdnotes.blogspot.com/2011/04/silverlight-adding-google-streets-view.html' title='Silverlight: Adding Google Streets View, part 2'/><author><name>Roy Dallal</name><uri>http://www.blogger.com/profile/00119182637862451390</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzYa4eUS6sxYWIdkX_Cpnmnz0KV0XcxtEtSA6D0BlTlRnoN1QE-rptKlzZhon1-snMROn8d3eQWTITW9YKwTFat1C3hJrsXuE-BoN0DBalwgiwaUOKDC9m_OihfkWyUQ/s220/MyPhoto.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6621729207202454780.post-9022730396648676285</id><published>2011-06-08T05:44:00.000-07:00</published><updated>2011-06-08T05:45:02.114-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ESRI Silverlight API"/><category scheme="http://www.blogger.com/atom/ns#" term="Final Version"/><title type='text'>ESRI Silverlight API: Getting Started</title><content type='html'>&lt;p align=&quot;left&quot;&gt;This post was moved to &lt;a href=&quot;http://www.dllshepherd.net/&quot; target=&quot;_blank&quot;&gt;my real blog&lt;/a&gt;: &lt;a href=&quot;http://www.dllshepherd.net/2011/06/esri-silverlight-api-getting-started.html&quot; target=&quot;_blank&quot;&gt;ESRI Silverlight API: Getting Started&lt;/a&gt;&lt;/p&gt;  </content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/9022730396648676285'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/9022730396648676285'/><link rel='alternate' type='text/html' href='http://dllshepherdnotes.blogspot.com/2011/05/esri-silverlight-api-getting-started.html' title='ESRI Silverlight API: Getting Started'/><author><name>Roy Dallal</name><uri>http://www.blogger.com/profile/00119182637862451390</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzYa4eUS6sxYWIdkX_Cpnmnz0KV0XcxtEtSA6D0BlTlRnoN1QE-rptKlzZhon1-snMROn8d3eQWTITW9YKwTFat1C3hJrsXuE-BoN0DBalwgiwaUOKDC9m_OihfkWyUQ/s220/MyPhoto.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6621729207202454780.post-2600246513815107624</id><published>2011-06-04T13:13:00.001-07:00</published><updated>2011-12-18T07:09:57.357-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ArcObjects"/><category scheme="http://www.blogger.com/atom/ns#" term="ESRI"/><category scheme="http://www.blogger.com/atom/ns#" term="Final Version"/><title type='text'>ArcObjects: Extending the Framework</title><content type='html'>&lt;p&gt;This post was moved to &lt;a href=&quot;http://www.dllshepherd.net/&quot; target=&quot;_blank&quot;&gt;my real blog&lt;/a&gt;: &lt;a href=&quot;http://www.dllshepherd.net/2011/06/arcobjects-extending-framework.html&quot; target=&quot;_blank&quot;&gt;ArcObjects: Extending the Framework&lt;/a&gt;&lt;/p&gt;  </content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/2600246513815107624'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/2600246513815107624'/><link rel='alternate' type='text/html' href='http://dllshepherdnotes.blogspot.com/2011/06/arcobjects-extending-framework.html' title='ArcObjects: Extending the Framework'/><author><name>Roy Dallal</name><uri>http://www.blogger.com/profile/00119182637862451390</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzYa4eUS6sxYWIdkX_Cpnmnz0KV0XcxtEtSA6D0BlTlRnoN1QE-rptKlzZhon1-snMROn8d3eQWTITW9YKwTFat1C3hJrsXuE-BoN0DBalwgiwaUOKDC9m_OihfkWyUQ/s220/MyPhoto.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6621729207202454780.post-3660864910231257919</id><published>2011-06-04T06:21:00.000-07:00</published><updated>2011-06-04T06:21:37.337-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ArcObjects"/><category scheme="http://www.blogger.com/atom/ns#" term="ESRI"/><category scheme="http://www.blogger.com/atom/ns#" term="Final Version"/><title type='text'>ArcObjects: Getting Started</title><content type='html'>&lt;p&gt;This post was moved to &lt;a href=&quot;http://www.dllshepherd.net/&quot; target=&quot;_blank&quot;&gt;my real blog&lt;/a&gt;: &lt;a href=&quot;http://www.dllshepherd.net/2011/06/arcobjects-getting-started.html&quot; target=&quot;_blank&quot;&gt;ArcObjects: Getting Started&lt;/a&gt;&lt;/p&gt;  </content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/3660864910231257919'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/3660864910231257919'/><link rel='alternate' type='text/html' href='http://dllshepherdnotes.blogspot.com/2011/04/starting-with-arcobjects.html' title='ArcObjects: Getting Started'/><author><name>Roy Dallal</name><uri>http://www.blogger.com/profile/00119182637862451390</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzYa4eUS6sxYWIdkX_Cpnmnz0KV0XcxtEtSA6D0BlTlRnoN1QE-rptKlzZhon1-snMROn8d3eQWTITW9YKwTFat1C3hJrsXuE-BoN0DBalwgiwaUOKDC9m_OihfkWyUQ/s220/MyPhoto.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6621729207202454780.post-512973794497260568</id><published>2011-06-04T06:16:00.000-07:00</published><updated>2011-06-04T06:17:08.728-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ESRI"/><category scheme="http://www.blogger.com/atom/ns#" term="Final Version"/><category scheme="http://www.blogger.com/atom/ns#" term="SDE"/><title type='text'>Geographic Database: ESRI File Formats</title><content type='html'>&lt;p&gt;This post was moved to &lt;a href=&quot;http://www.dllshepherd.net/&quot; target=&quot;_blank&quot;&gt;my real blog&lt;/a&gt;: &lt;a href=&quot;http://www.dllshepherd.net/2011/06/geographic-database-esri-file-formats.html&quot; target=&quot;_blank&quot;&gt;Geographic Database: ESRI File Formats&lt;/a&gt;&lt;/p&gt;  </content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/512973794497260568'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/512973794497260568'/><link rel='alternate' type='text/html' href='http://dllshepherdnotes.blogspot.com/2011/01/geographic-database-esri-file-formats.html' title='Geographic Database: ESRI File Formats'/><author><name>Roy Dallal</name><uri>http://www.blogger.com/profile/00119182637862451390</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzYa4eUS6sxYWIdkX_Cpnmnz0KV0XcxtEtSA6D0BlTlRnoN1QE-rptKlzZhon1-snMROn8d3eQWTITW9YKwTFat1C3hJrsXuE-BoN0DBalwgiwaUOKDC9m_OihfkWyUQ/s220/MyPhoto.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6621729207202454780.post-2487544454573401987</id><published>2011-05-29T05:09:00.000-07:00</published><updated>2011-05-31T01:58:13.291-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Final Version"/><category scheme="http://www.blogger.com/atom/ns#" term="Silverlight"/><title type='text'>Silverlight: String localization Problems</title><content type='html'>&lt;p&gt;This post was moved to &lt;a href=&quot;http://www.dllshepherd.net/&quot; target=&quot;_blank&quot;&gt;my real blog&lt;/a&gt;: &lt;a href=&quot;http://www.dllshepherd.net/2011/05/silverlight-string-localization.html&quot; target=&quot;_blank&quot;&gt;Silverlight: String localization Problems&lt;/a&gt;&lt;/p&gt;  </content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/2487544454573401987'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/2487544454573401987'/><link rel='alternate' type='text/html' href='http://dllshepherdnotes.blogspot.com/2011/05/silverlight-string-localization.html' title='Silverlight: String localization Problems'/><author><name>Roy Dallal</name><uri>http://www.blogger.com/profile/00119182637862451390</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzYa4eUS6sxYWIdkX_Cpnmnz0KV0XcxtEtSA6D0BlTlRnoN1QE-rptKlzZhon1-snMROn8d3eQWTITW9YKwTFat1C3hJrsXuE-BoN0DBalwgiwaUOKDC9m_OihfkWyUQ/s220/MyPhoto.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6621729207202454780.post-7345944685838980423</id><published>2011-05-26T09:36:00.000-07:00</published><updated>2011-05-31T01:58:13.292-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Final Version"/><category scheme="http://www.blogger.com/atom/ns#" term="Silverlight"/><title type='text'>Configuring Silverlight Applications</title><content type='html'>This post was moved to &lt;a href=&quot;http://www.dllshepherd.net/&quot; target=&quot;_blank&quot;&gt;my real blog&lt;/a&gt;: &lt;a href=&quot;http://www.dllshepherd.net/2011/05/configuring-silverlight-applications.html&quot; target=&quot;_blank&quot;&gt;Configuring Silverlight Applications&lt;/a&gt;  </content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/7345944685838980423'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6621729207202454780/posts/default/7345944685838980423'/><link rel='alternate' type='text/html' href='http://dllshepherdnotes.blogspot.com/2011/01/configuring-silverlight-applications.html' title='Configuring Silverlight Applications'/><author><name>Roy Dallal</name><uri>http://www.blogger.com/profile/00119182637862451390</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzYa4eUS6sxYWIdkX_Cpnmnz0KV0XcxtEtSA6D0BlTlRnoN1QE-rptKlzZhon1-snMROn8d3eQWTITW9YKwTFat1C3hJrsXuE-BoN0DBalwgiwaUOKDC9m_OihfkWyUQ/s220/MyPhoto.jpg'/></author></entry></feed>