<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : ISampleDataProvider internal c&#111;nstrutor</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : Community Forum : ISampleDataProvider internal c&#111;nstrutor</description>
  <pubDate>Fri, 10 Apr 2026 19:12:36 -700</pubDate>
  <lastBuildDate>Sat, 22 Sep 2012 08:33:48 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=3643</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>ISampleDataProvider internal c&#111;nstrutor :   I thought it was basic, but...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3643&amp;PID=14512#14512</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1514" rel="nofollow">halloweenx8</a><br /><strong>Subject:</strong> 3643<br /><strong>Posted:</strong> 22-Sep-2012 at 8:33am<br /><br />I thought it was basic, but it is a neat trick, thanks]]>
   </description>
   <pubDate>Sat, 22 Sep 2012 08:33:48 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3643&amp;PID=14512#14512</guid>
  </item> 
  <item>
   <title>ISampleDataProvider internal c&#111;nstrutor : The trick is to make the types...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3643&amp;PID=14507#14507</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1005" rel="nofollow">mgood</a><br /><strong>Subject:</strong> 3643<br /><strong>Posted:</strong> 22-Sep-2012 at 1:03am<br /><br />The trick is to make the types visible to the other assembly. In TempHire, DomainModel makes it's internal types visible to DomainServices.<br /><br />Look at AssemblyInfo.cs and you'll find the following:<br /><br />&#091;assembly: InternalsVisibleTo("DomainServices.SL")&#093;<br /><br />or<br /><br />&#091;assembly: InternalsVisibleTo("DomainServices")&#093;<br /><br />More info on InternalsVisibleTo can be found there:<br /><br />http://msdn.microsoft.com/en-us/library/system.runtime.compilerservices.internalsvisibletoattribute.aspx]]>
   </description>
   <pubDate>Sat, 22 Sep 2012 01:03:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3643&amp;PID=14507#14507</guid>
  </item> 
  <item>
   <title>ISampleDataProvider internal c&#111;nstrutor :   For the life of me I can&amp;#039;t...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3643&amp;PID=14486#14486</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1514" rel="nofollow">halloweenx8</a><br /><strong>Subject:</strong> 3643<br /><strong>Posted:</strong> 20-Sep-2012 at 10:48pm<br /><br />For the life of me I can't find why TempHire works and my app which is similar does not.<div>&nbsp;</div><div>This code is located in TempHireSampleDataProvider</div><div>&nbsp;</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private StaffingResource NewResource(string first, string middle, string last, string summary)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return new StaffingResource<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&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sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CreatedUser = "SampleData",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Modified = SystemTime.Now,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ModifyUser = "SampleData"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div><div>&nbsp;</div><div>&nbsp;</div><div>But the class is defined this way</div><div>&nbsp;internal StaffingResource()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div><div><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /// &lt;summary&gt;Gets or sets the Id. &lt;/summary&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#091;DataMember&#093;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#091;DatabaseGenerated(DatabaseGeneratedOption.None)&#093;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#091;Required&#093;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public Guid Id { get; internal set; }</div><div>&nbsp;</div><div>there suppose to be 2 errors in here, first the constructor is internal and second Id is should not be settable?</div><div>&nbsp;</div><div>Now that must be me missing basic stuff.</div><div>&nbsp;</div><div>Thanks anyway.</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Thu, 20 Sep 2012 22:48:20 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3643&amp;PID=14486#14486</guid>
  </item> 
 </channel>
</rss>