This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
中文 | English
可以解决,数据库有主键 + 自增,实体层没有配置对应的特性;
从数据库导入主键、自增信息,适用 DbFirst 模式,无须在实体类型上设置 [Column(IsPrimary)] 或者 ConfigEntity;
fsql.CodeFirst.IsConfigEntityFromDbFirst = true;
此功能目前可用于 mysql/sqlserver/postgresql/oracle。
开启该功能会增加首次执行时间(耗时情况和表数量有关)
数据库特性 > 实体特性 > FluentApi(配置特性) > Aop(配置特性)
《实体特性说明》
《FluentApi,享受纯净实体类》
《Aop自定义特性,与其他 ORM 共用特性》
《类型映射,一览便知》
《导航关系配置》
《CodeFirst模式开发介绍》
Deleting the wiki page "导入数据库特性" cannot be undone. Continue?