INamingStrategy.cs :  » Persistence-Frameworks » NHibernate » NHibernate » Cfg » 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 » Persistence Frameworks » NHibernate 
NHibernate » NHibernate » Cfg » INamingStrategy.cs
namespace NHibernate.Cfg{
  /// <summary>
  /// A set of rules for determining the physical column and table names given the information in the mapping
  /// document. May be used to implement project-scoped naming standards for database objects.
  /// </summary>
  public interface INamingStrategy
  {
    /// <summary>
    /// Return a table name for an entity class
    /// </summary>
    /// <param name="className">the fully-qualified class name</param>
    /// <returns>a table name</returns>
    string ClassToTableName(string className);

    /// <summary>
    /// Return a column name for a property path expression 
    /// </summary>
    /// <param name="propertyName">a property path</param>
    /// <returns>a column name</returns>
    string PropertyToColumnName(string propertyName);

    /// <summary>
    /// Alter the table name given in the mapping document
    /// </summary>
    /// <param name="tableName">a table name</param>
    /// <returns>a table name</returns>
    string TableName(string tableName);

    /// <summary>
    /// Alter the column name given in the mapping document
    /// </summary>
    /// <param name="columnName">a column name</param>
    /// <returns>a column name</returns>
    string ColumnName(string columnName);

    /// <summary>
    /// Return a table name for a collection
    /// </summary>
    /// <param name="className">the fully-qualified name of the owning entity class</param>
    /// <param name="propertyName">a property path</param>
    /// <returns>a table name</returns>
    string PropertyToTableName(string className, string propertyName);

    /// <summary> 
    /// Return the logical column name used to refer to a column in the metadata
    /// (like index, unique constraints etc)
    /// A full bijection is required between logicalNames and physical ones
    /// logicalName have to be case insersitively unique for a given table 
    /// </summary>
    /// <param name="columnName">given column name if any </param>
    /// <param name="propertyName">property name of this column </param>
    string LogicalColumnName(string columnName, string propertyName);
  }
}
www.java2v.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.