<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tag 'interfaces'</title><link>http://forums.asp.net/search/SearchResults.aspx?q=&amp;tag=interfaces&amp;orTags=0&amp;o=DateDescending</link><description>Search results matching tag 'interfaces'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Update Model Issue When Working With Interfaces and formCollection.ToValueProvider()</title><link>http://forums.asp.net/thread/3421628.aspx</link><pubDate>Wed, 23 Sep 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3421628</guid><dc:creator>agatlin</dc:creator><description>&lt;p&gt;I am having a weird issue with objects not being updated with UpdateModel when passed a formCollection.&lt;/p&gt;
&lt;p&gt;I have an application which has approximately 50 lookup tables--each of which includes exactly the same schema including typical fields like id, title, description, isactive, and createdon.&lt;/p&gt;
&lt;p&gt;Rather than build 50 views, I created an Interface called IReferenceEntity. Using this interface, I am able to easily populate a form with the record from the lookup table. (I pass the items to the view via&amp;nbsp; System.Web.Mvc.ViewPage&amp;lt;MyNamespece.IReferenceEntity&amp;gt; ). However, when I attempt to update the model on post, I am running into some problems. &lt;/p&gt;
&lt;p&gt;If I were to explicitly declare an obect reference like the following, every thing works perfectly and the values of my object are updated with the values from my form.&lt;/p&gt;&lt;pre class="c-sharp" name="code"&gt;AccountStatus a = new AccountStatus();&lt;br /&gt;&lt;br /&gt;UpdateModel(a, formCollection.ToValueProvider());&lt;br /&gt;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;Unfortunately, hard coding the object type would completely defeat the purpose of my using an interface. My objective is to dynamically determine the type (which I can do) and then create an instance of the type through reflection.&lt;/p&gt;
&lt;p&gt;When I create an instance of the object through the following methods, none of them are being updated by UpdateModel.&lt;/p&gt;&lt;pre class="c-sharp" name="code"&gt;Type t = {Magically Determined Type}&lt;br /&gt;&lt;br /&gt;object b = Activator.CreatorInstance(t);&lt;br /&gt;&lt;br /&gt;UpdateModel(b, formCollection.ToValueProvider());&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;Type t = {Magically Determined Type}&lt;br /&gt;&lt;br /&gt;var c = Activator.CreatorInstance(t);&lt;br /&gt;&lt;br /&gt;UpdateModel(c, formCollection.ToValueProvider());&lt;br /&gt;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;pre class="c-sharp" name="code"&gt;Type t = {Magically Determined Type}&lt;br /&gt;&lt;br /&gt;IReferenceEntity d = Activator.CreatorInstance(t);&lt;br /&gt;&lt;br /&gt;UpdateModel(d, formCollection.ToValueProvider());&lt;br /&gt;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Does anyone have any idea why this might be happening?&lt;/p&gt;
&lt;p&gt;If I was really &amp;quot;hard up&amp;quot;, I could create factory object which would many instante any one of these reference entity/lookup objects. However, this would break the application&amp;#39;s ability to allow for new lookup tables to be added and discovered transparently and is just not quite as clean.&lt;/p&gt;
&lt;p&gt;Any help is appreciated.&lt;/p&gt;
&lt;p&gt;Anthony&lt;/p&gt;</description></item><item><title>Tying a Strongly-Typed View to and Interface</title><link>http://forums.asp.net/thread/3386325.aspx</link><pubDate>Thu, 03 Sep 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3386325</guid><dc:creator>WoogyChuck</dc:creator><description>&lt;p&gt;Is it possible to tie a strongly-type view to an interface rather than a concrete class? I&amp;#39;m using a decorator pattern kind of thing for a couple of user types and I wanted to use the same view to list users of all types.&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;</description></item><item><title>violation of object oriented Programming</title><link>http://forums.asp.net/thread/3301012.aspx</link><pubDate>Sat, 18 Jul 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3301012</guid><dc:creator>amit_soni2000</dc:creator><description>&lt;p&gt;Hello Everyone,&lt;br /&gt;&lt;br /&gt;can you guys please tell me,is this code violating the rules of oops?&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-SIZE:x-small;"&gt;&lt;font size="2"&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;interface&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:x-small;"&gt; &lt;/span&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#2b91af;"&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#2b91af;"&gt;A&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:x-small;"&gt;
&lt;p&gt;{&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;string&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:x-small;"&gt; GetText(); &lt;/span&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;class&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:x-small;"&gt; &lt;/span&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#2b91af;"&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#2b91af;"&gt;B&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:x-small;"&gt; : &lt;/span&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#2b91af;"&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#2b91af;"&gt;A&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="FONT-SIZE:x-small;"&gt;
&lt;p&gt;{&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;/span&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;public&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:x-small;"&gt; &lt;/span&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;string&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:x-small;"&gt; GetText() &lt;/span&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;return&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:x-small;"&gt; &lt;/span&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#a31515;"&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#a31515;"&gt;&amp;quot;Hello From Interface&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:x-small;"&gt;; &lt;/span&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;public&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:x-small;"&gt; &lt;/span&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;string&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:x-small;"&gt; MethodInB() &lt;/span&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;return&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:x-small;"&gt; &lt;/span&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#a31515;"&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#a31515;"&gt;&amp;quot;Hello from Class&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:x-small;"&gt;; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="FONT-SIZE:x-small;"&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/span&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;static&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:x-small;"&gt; &lt;/span&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;void&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:x-small;"&gt; Main() &lt;/span&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#2b91af;"&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#2b91af;"&gt;A&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:x-small;"&gt; obj = &lt;/span&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#0000ff;"&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:x-small;"&gt; &lt;/span&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#2b91af;"&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#2b91af;"&gt;B&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:x-small;"&gt;();&lt;font size="2"&gt; &lt;/font&gt;&lt;/span&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#2b91af;"&gt;&lt;span style="FONT-SIZE:x-small;COLOR:#2b91af;"&gt;B&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:x-small;"&gt;)obj).MethodInB();&lt;br /&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:x-small;"&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;i am in the state of confussion please help me.&lt;/span&gt;&lt;/p&gt;&lt;/p&gt;
&lt;p&gt;((&lt;/p&gt;&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>question on interfaces</title><link>http://forums.asp.net/thread/3275541.aspx</link><pubDate>Sun, 05 Jul 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3275541</guid><dc:creator>harrycode</dc:creator><description>&lt;p&gt;suppose there are to classes A and class B&lt;/p&gt;&lt;p&gt;Class A implements interface &lt;b&gt;icomparable&amp;nbsp; &lt;/b&gt;which is have a single method &lt;b&gt;compareTo()&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Class B uses compareTo() method of Class A in its method&lt;/p&gt;&lt;p&gt;&lt;b&gt;Now question is that&amp;nbsp; how ClassB will differenctiate or know that
the compareTo() method of ClassA is part of interface or it is just a &lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;
method defined in class. I want know how other classB come to know wheather&amp;nbsp; method is part of interface or not.&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;class ClassA&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public int CompareTo(object obj)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ---------------&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;class ClassB&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; static void printout(myclass[] mc)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&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; ClassA obj= new ClassA();&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ClassB objB = new ClassB();&lt;br /&gt;&lt;/p&gt;&lt;p&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; obj.compareTo(objB)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>how can i popup email msgbox...</title><link>http://forums.asp.net/thread/3091792.aspx</link><pubDate>Wed, 15 Apr 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3091792</guid><dc:creator>Rangapure.S.Swapnil</dc:creator><description>&lt;p&gt;&amp;nbsp;hi 2 alll..&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;In almost every website their is Career&amp;nbsp; option and their is and E-mail Id provided for us to send&amp;nbsp; resume...&amp;nbsp; if we click on that email id their is a popup of email box&lt;/p&gt;&lt;p&gt;from:---&lt;/p&gt;&lt;p&gt;to:--&lt;/p&gt;&lt;p&gt;subject:---&lt;/p&gt;&lt;p&gt;and alll....&lt;/p&gt;&lt;p&gt;i want the same to be happen in my project how can i popup the window which wll contain the Email Id provided by us in &lt;/p&gt;&lt;p&gt;to:- ---&lt;/p&gt;&lt;p&gt;field &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;help me out..&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Interface implementation</title><link>http://forums.asp.net/thread/2853093.aspx</link><pubDate>Wed, 07 Jan 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2853093</guid><dc:creator>exlaf</dc:creator><description>&lt;p&gt;&amp;nbsp;Hi!&lt;/p&gt;&lt;p&gt;this is my first post so Hello everyone!&lt;img src="http://forums.asp.net/emoticons/emotion-15.gif" alt="Geeked" /&gt;&lt;/p&gt;&lt;p&gt;Sorry if my question is bit noobish but here it goes - thing I&amp;#39;m currently struggling to grasp is why predefined classes in .NET framework don&amp;#39;t implement their interfaces within their bodies? I&amp;#39;m working currently with StateBag class and it says that class implements IStateManager, IDictionary, ICollection, IEnumerable interfaces, however there are no members of those interfaces within StateBag class declaration&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;in my custom class I have a field of StateBag type:&lt;/p&gt;&lt;p&gt;StateBag ViewState = new StateBag();&lt;/p&gt;&lt;p&gt;if StateBag class implements say IStateManager interface then I would have thought that ViewState field should be able to access *directly* IStateManager members like LoadViewState(), SaveViewState(), TrackViewState() and so on.it&amp;#39;s not the case and those members are called:&lt;/p&gt;&lt;p&gt;((IStateManager)ViewState).LoadViewState(); &lt;br /&gt;&lt;/p&gt;&lt;p&gt; the way they are called is quite confusing for me and it seems to me that StateBag class don&amp;#39;t implement those interfaces *directly*&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If anyone has explanation for this problem please share your knowledge&lt;img src="http://forums.asp.net/emoticons/emotion-2.gif" alt="Big Smile" /&gt;, once again sorry if the question is bit silly&lt;/p&gt;&lt;p&gt;thank you in advance &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Interface Implementation</title><link>http://forums.asp.net/thread/2774509.aspx</link><pubDate>Sat, 29 Nov 2008 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2774509</guid><dc:creator>Kamarikan</dc:creator><description>&lt;p&gt;it&amp;#39;s based on what ypu need and based on your need.&lt;/p&gt;
&lt;p&gt;the interface is a logic e.g all of the car in whole world should put the&amp;nbsp; speed pedal on right side of the foot , any body can changethe logic . each car company should implement this interface . these interfaces type became like a law , and any body can changed it , if one wanted to change it he should first change the whole world people mind to changing speed pedal to another side .&lt;/p&gt;
&lt;p&gt;but some of interfaces bavaive based on your application like you want to implement a ienumerable interface and you want to implement getEnum... I can implemenmt it in my needs and you should implement it asyou want , there is no limitation in implementing interfaces&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;look at one sample here : &lt;a href="http://msdn.microsoft.com/en-us/library/system.collections.ienumerable.aspx"&gt;http://msdn.microsoft.com/en-us/library/system.collections.ienumerable.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;please let me know whats happen to your aplication after this information . and mark this as answer if the answer was right.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>LINQ with Interface, changing Database Model Layer? ( ASP.NET MVC thoughts )</title><link>http://forums.asp.net/thread/2771290.aspx</link><pubDate>Thu, 27 Nov 2008 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2771290</guid><dc:creator>FilipEkberg</dc:creator><description>&lt;p&gt;So i was thinking about using Interfaces to create a somewhat better API / Design.&lt;br /&gt;&lt;br /&gt;I want to have some control over my data when using LINQ to SQL and mapping my own classes seems unessesary and just out of order.&lt;br /&gt;&lt;br /&gt;What i was thinking was that i&amp;#39;ll modify the .dbml which has the logic for my database. Why? Well i was thinking, since im using the asp.net mvc for my new web app.&lt;br /&gt;Having a controller taking a IEditable interface i can modify my underlying datalayer to only edit the specific properties.&lt;br /&gt;&lt;br /&gt;The real question is, how bad is it, design-wise, changing the .dbml.designer.cs by hand? Implementing new interfaces to the partial class definitons? Suggestions on a better way?&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Filip Ekberg&lt;/p&gt;</description></item><item><title>do we need to implement all the methods of an interface?</title><link>http://forums.asp.net/thread/2642290.aspx</link><pubDate>Wed, 24 Sep 2008 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2642290</guid><dc:creator>spillbean</dc:creator><description>&lt;p&gt;&lt;/p&gt;&lt;p&gt;Hi all, &lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; While implementing an interface we need to implement all the methods of an interface otherwise the class becomes an abstract class .&lt;/p&gt;&lt;p&gt;What if there is an interface containing 30 methods but we do not require all the methods to be implemented, then in this case what should we do to prevent the class from being Abstract? &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Protected/Private Interface</title><link>http://forums.asp.net/thread/2588124.aspx</link><pubDate>Fri, 29 Aug 2008 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2588124</guid><dc:creator>spillbean</dc:creator><description>&lt;p&gt;Hi Guys, We all know that&amp;nbsp; Interface members are by default&amp;nbsp; Public and Abstract. But can we declare Interface as private or protected ?&lt;/p&gt;
&lt;p&gt;If yes then what is the significance of Private Interface and is there any difference in implementation of Protected and Public Interfaces?&lt;/p&gt;</description></item></channel></rss>