/// <summary>
        /// 构建
        /// </summary>
        /// <param name="context">构建上下文</param>
        public EntityContext Build(BuildContext context)
        {
            var entityContext = new EntityContext();

            entityContext.DatabaseName = context.Project.Parameters["UnitOfWork"].ToString();
            var dataContextName = $"{Str.ToPascalCase(entityContext.DatabaseName)}Context";

            entityContext.ClassName = _namer.UniqueClassName(dataContextName);
            foreach (var schema in context.GetCurrentAllSchema())
            {
                foreach (var table in schema.Tables)
                {
                    GetEntity(entityContext, schema, table);
                }
            }
            return(entityContext);
        }