Skip to content
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

Bulk configuring models #571

Closed
bricelam opened this issue Nov 21, 2017 · 0 comments · Fixed by #3533
Closed

Bulk configuring models #571

bricelam opened this issue Nov 21, 2017 · 0 comments · Fixed by #3533

Comments

@bricelam
Copy link
Contributor

We should have a page showing how do to things like this:

foreach (var property in modelBuilder.Model.GetEntityTypes()
    .SelectMany(t => t.GetProperties())
    .Where(p => p.ClrType == typeof(decimal)))
{
    property.Relational().ColumnType = "decimal(18, 6)";
}
@ajcvickers ajcvickers self-assigned this Dec 18, 2017
@ajcvickers ajcvickers added this to the 2.1.0 milestone Dec 18, 2017
@divega divega modified the milestones: 2.1.0, 2.2.0 Jul 10, 2018
@divega divega added help wanted This issue involves technologies where we are not experts. Expert help would be appreciated. and removed help wanted This issue involves technologies where we are not experts. Expert help would be appreciated. labels Nov 5, 2018
@divega divega modified the milestones: 2.2.0, 3.0.0 Feb 21, 2019
@ajcvickers ajcvickers modified the milestones: 3.0.0, Backlog Aug 28, 2019
@AndriySvyryd AndriySvyryd modified the milestones: Backlog, 6.0.0 Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants