-
Notifications
You must be signed in to change notification settings - Fork 842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如何使用 Code First 的 Fluent API 方式定义表字段信息? #1800
Comments
注释就用 如果只是RowVersion 字段 转换成row_version 不需要主动写任何特性,可以在定义FreeSqlBuilder时指定UseNameConvert参数 .UseNameConvert(NameConvertType.PascalCaseToUnderscoreWithLower) 可以看FluentApi文档,配置具体的内容: 比如,使用.Help()方法后可使用和特性标签同样的配置项
|
感谢你的解答,我还想知道定义表结构,使用 Fluent API 风格模式,在 Configure 方法中 eb 具体使用参考有文档麽? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FreeSql
使用code first
的Fluent API
方式Song
实体模型定义和SongConfiguration
SongConfiguration
继承IEntityTypeConfiguration<Song>
对象,在Configure
方法中关于实体对象的表结构定义特性该怎么写,有参考文档说明麽?谢谢!The text was updated successfully, but these errors were encountered: