.Net Web APi/Angular 6 - Lesson 1

madmax9

Active member
  • Feb 21, 2017
    539
    75
    28
    Code:
    PM> AutomaticMigrationsEnabled = false;
    
    AutomaticMigrationsEnabled : The term 'AutomaticMigrationsEnabled' is not recognized as the name of a cmdlet, function, script file, or operable program. Check 
    the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + AutomaticMigrationsEnabled = false;
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (AutomaticMigrationsEnabled:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException

    meka hada ganne kohomada? man c# karala na kalin
     

    HAneo

    Well-known member
  • Jan 30, 2007
    2,110
    1,162
    113
    Homagama
    Code:
    PM> AutomaticMigrationsEnabled = false;
    
    AutomaticMigrationsEnabled : The term 'AutomaticMigrationsEnabled' is not recognized as the name of a cmdlet, function, script file, or operable program. Check 
    the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + AutomaticMigrationsEnabled = false;
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (AutomaticMigrationsEnabled:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException

    meka hada ganne kohomada? man c# karala na kalin

    machan automatic migrations true karanne othanin neme
    oya hoyaganna

    Configuration.cs file eka data project eke athi

    eke constructor eke athi true karanna

    Code:
     internal sealed class Configuration : DbMigrationsConfiguration<DestinityERP.Data.EF.MainDbContext>
        {
            public Configuration()
            {
    
                AutomaticMigrationsEnabled = true;
            }
     

    madmax9

    Active member
  • Feb 21, 2017
    539
    75
    28
    machan automatic migrations true karanne othanin neme
    oya hoyaganna

    Configuration.cs file eka data project eke athi

    eke constructor eke athi true karanna

    Code:
     internal sealed class Configuration : DbMigrationsConfiguration<DestinityERP.Data.EF.MainDbContext>
        {
            public Configuration()
            {
    
                AutomaticMigrationsEnabled = true;
            }

    Thanks machan