using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.Text;

namespace MadRunFabric.Common
{
    /// <summary>
    /// 所有数据表实体类都必须实现此接口 目前非关系型数据库mongodb用的此
    /// </summary>
    /// <typeparam name="TKey"></typeparam>
    public interface IBaseModel<TKey>
    {
        [BsonId]
        TKey id { get; set; }
    }
}
