schangxiang@126.com
3 天以前 35d6465fc502a3287c6cc1d0f307d616dbe1ccda
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
namespace iWareCommon.Common.Entity
{
    /// <summary>
    /// 公用的实体类接口
    /// 张展
    /// </summary>
    /// <typeparam name="T">自定义的实体类型</typeparam>
    /// <typeparam name="S">ORM中的实体类型</typeparam>
    public interface ICommonEntity<S>
    {
        int Id { get; set; }
 
        /// <summary>
        /// 将T类型的实体转换成Orm中的对象
        /// </summary>
        /// <returns>Orm中的对象</returns>
        S ToOrm();
    }
}