/// <summary>
        /// 通过 <see cref="MemberInitExpression"/> 表达式来构造一个实体代理对象。
        /// </summary>
        /// <param name="context"></param>
        /// <param name="entityType">实体类型。</param>
        /// <param name="initExp">一个成员绑定的表达式。</param>
        /// <param name="applyDefaultValue">是否应用默认值。</param>
        /// <returns></returns>
        public static IEntity Wrap(this EntityContext context, Type entityType, LambdaExpression initExp, bool applyDefaultValue)
        {
            var entity = context.New(entityType, applyDefaultValue);

            entity.InitByExpression(initExp);
            return(entity);
        }
 /// <summary>
 /// 构造一个实体代理对象。
 /// </summary>
 /// <typeparam name="TEntity">实体类型。</typeparam>
 /// <param name="context"></param>
 /// <returns></returns>
 public static TEntity New <TEntity>(this EntityContext context) where TEntity : IEntity
 {
     return((TEntity)context.New(typeof(TEntity), false));
 }
 /// <summary>
 /// 构造一个实体代理对象。
 /// </summary>
 /// <typeparam name="TEntity">实体类型。</typeparam>
 /// <param name="context"></param>
 /// <param name="applyDefaultValue">是否应用默认值。</param>
 /// <returns></returns>
 public static TEntity New <TEntity>(this EntityContext context, bool applyDefaultValue) where TEntity : IEntity
 {
     return((TEntity)context.New(typeof(TEntity), applyDefaultValue));
 }
 /// <summary>
 /// 构造一个实体代理对象。
 /// </summary>
 /// <param name="context"></param>
 /// <param name="entityType">实体类型。</param>
 /// <returns></returns>
 public static IEntity New(this EntityContext context, Type entityType)
 {
     return(context.New(entityType, false));
 }