城市天际线中文站点,虎牙汉界,开源项目。 http://www.cities-skylines.cn
服务器端:
客户端:
1.修改数据模型后执行以下操作,更新数据库模型。
Add-Migration InitialCreate //修改 "InitialCreate" 为本次调整的详细说明
Update-Database
a.如果执行以上命令出现异常:
An item with the same key has already been added. Key: Pomelo.EntityFrameworkCore.MySql.Infrastructure.Internal.MySqlOptionsExtension
则注释 CSLDbContext 下的 OnConfiguring 方法,仅保留 base. 一行。
b.如果出现 BuildFail:
则 Ctrl+Shift+B 重新生成项目,再根据编译器的错误提示修正 CSL-CN 项目内报红线的语法错误。
2.Angular 项目中使用装饰器出现编译器错误提示。
卸载项目 -> 右键编辑项目文件 -> 增加以下配置行以取消错误提示。
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
....
<TypeScriptExperimentalDecorators>true</TypeScriptExperimentalDecorators
</PropertyGroup>
see also: microsoft/TypeScript#3934
1.栅格列定位
-
首先使用 nzType="flex" 支持弹性布局。
-
水平对齐方式 nzJustify="start,center,end,space-between,space-around"
-
垂直对齐方式 nzAlign="top,middle,bottom"
see also : https://ng.ant.design/components/grid/zh
- MySql80 服务无法启动