idaofactory.cs
来自「NHibernate简单DEMO」· CS 代码 · 共 25 行
CS
25 行
using BasicSample.Core.Domain;
namespace BasicSample.Core.DataInterfaces
{
/// <summary>
/// Provides an interface for retrieving DAO objects
/// </summary>
public interface IDaoFactory
{
ICustomerDao GetCustomerDao();
IHistoricalOrderSummaryDao GetHistoricalOrderSummaryDao();
IOrderDao GetOrderDao();
ISupplierDao GetSupplierDao();
}
// There's no need to declare each of the DAO interfaces in its own file, so just add them inline here.
// But you're certainly welcome to put each declaration into its own file.
#region Inline interface declarations
public interface ICustomerDao : IDao<Customer, string> { }
public interface ISupplierDao : IDao<Supplier, long> { }
#endregion
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?