Dave Burke : Freelance .NET Web Developer specializing in Online Communities

VS2005 Refactoring : Extract Interface

Create a new interface with members derived from an existing class, struct, or interface.

We're going to create an interface of an existing class, select elements to comprise the interface, with the generated interface in a separate file shown below.



using System;
namespace OLAF.MailServer
{
    interface IMessageStore
    {
        int DeletedCount { get; set; }
        int DraftsCount { get; set; }
        void Reset();
    }
}

Comments (1) | Post RSS RSS comment feed

Posted on 5/21/2005 3:02:00 PM by Dave Burke
Categories: .NET
Tags:

Related posts

Comments (1) -

5/25/2005 6:45:47 PM Permalink

I believe that any DataLayer must be a simple code block, that they allow operations against DB.

That code block would not have to know on the Business Entities. Single to specialize it is to execute the operations (Store Procedures and SQL Sentences) against the engine DB (SQL, Oracle, DB2, etc.), with which this setting.

Finally, I invite to you to download the DataLayer.Primitives Public Version.

This is very cool Data Layer Smile

DataLayer.Primitives - Readme!
forums.microsoft.com/.../ShowPost.aspx?PostID=1389

Cheers,

Javier Luna
http://guydotnetxmlwebservices.blogspot.com/

Javier Luna |


Powered by BlogEngine.NET 2.0.0.36
Theme by Dave Burke