IEntityViewProvider.cs :  » Template-Engines » netTiers » PetShop » Data » C# / CSharp Open Source

Home
C# / CSharp Open Source
1.2.6.4 mono .net core
2.2.6.4 mono core
3.Aspect Oriented Frameworks
4.Bloggers
5.Build Systems
6.Business Application
7.Charting Reporting Tools
8.Chat Servers
9.Code Coverage Tools
10.Content Management Systems CMS
11.CRM ERP
12.Database
13.Development
14.Email
15.Forum
16.Game
17.GIS
18.GUI
19.IDEs
20.Installers Generators
21.Inversion of Control Dependency Injection
22.Issue Tracking
23.Logging Tools
24.Message
25.Mobile
26.Network Clients
27.Network Servers
28.Office
29.PDF
30.Persistence Frameworks
31.Portals
32.Profilers
33.Project Management
34.RSS RDF
35.Rule Engines
36.Script
37.Search Engines
38.Sound Audio
39.Source Control
40.SQL Clients
41.Template Engines
42.Testing
43.UML
44.Web Frameworks
45.Web Service
46.Web Testing
47.Wiki Engines
48.Windows Presentation Foundation
49.Workflows
50.XML Parsers
C# / C Sharp
C# / C Sharp by API
C# / CSharp Tutorial
C# / CSharp Open Source » Template Engines » netTiers 
netTiers » PetShop » Data » IEntityViewProvider.cs
#region Using Directives
using System;
using PetShop.Business;
#endregion
namespace PetShop.Data{
  /// <summary>
  /// Defines the common data access methods that can be used by the
  /// ReadOnlyDataSource control to interact with the underlying data store.
  /// </summary>
  /// <typeparam name="Entity">The class of the business object being accessed.</typeparam>
  public interface IEntityViewProvider<Entity> where Entity : new()
  {
    /// <summary>
    /// Gets a page of rows from the DataSource.
    /// </summary>
    /// <param name="whereClause">Specifies the condition for the rows returned by a query (Name='John Doe', Name='John Doe' AND Id='1', Name='John Doe' OR Id='1').</param>
    /// <param name="orderBy">Specifies the sort criteria for the rows in the DataSource (Name ASC; BirthDay DESC, Name ASC);</param>
    /// <param name="start">Row number at which to start reading.</param>
    /// <param name="pageLength">Number of rows to return.</param>
    /// <param name="count">The total number of rows in the data source.</param>
    /// <returns>Returns a typed collection of Entity objects.</returns>
    VList<Entity> Get(String whereClause, String orderBy, int start, int pageLength, out int count);

    /// <summary>
    /// Gets a page of rows from the DataSource.
    /// </summary>
    /// <param name="whereClause">Specifies the condition for the rows returned by a query (Name='John Doe', Name='John Doe' AND Id='1', Name='John Doe' OR Id='1').</param>
    /// <param name="orderBy">Specifies the sort criteria for the rows in the DataSource (Name ASC; BirthDay DESC, Name ASC);</param>
    /// <param name="start">Row number at which to start reading.</param>
    /// <param name="pageLength">Number of rows to return.</param>
    /// <param name="count">The total number of rows in the data source.</param>
    /// <returns>Returns a typed collection of Entity objects.</returns>
    VList<Entity> GetPaged(String whereClause, String orderBy, int start, int pageLength, out int count);

    /// <summary>
    /// Gets all rows from the DataSource.
    /// </summary>
    /// <param name="start">Row number at which to start reading.</param>
    /// <param name="pageLength">Number of rows to return.</param>
    /// <param name="count">Number of rows in the DataSource.</param>
    /// <returns>Returns a typed collection of Entity objects.</returns>
    VList<Entity> GetAll(int start, int pageLength, out int count);
    
    /// <summary>
    ///   Returns rows from the DataSource that meet the parameter conditions.
    /// </summary>
    /// <param name="parameters">A collection of <see cref="SqlFilterParameter"/> objects.</param>
    /// <param name="orderBy">Specifies the sort criteria for the rows in the DataSource (Name ASC; BirthDay DESC, Name ASC);</param>
    /// <param name="start">Row number at which to start reading.</param>
    /// <param name="pageLength">Number of rows to return.</param>
    /// <param name="count">out. The number of rows that match this query.</param>
    /// <returns>Returns a typed collection of Entity objects.</returns>
    VList<Entity> Find(IFilterParameterCollection parameters, string orderBy, int start, int pageLength, out int count);
    
  }
}
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.