Base solution for your next web application

Activities of "dsalodki"

Question

Additional information: Mapper not initialized. Call Initialize with appropriate configuration. If you are trying to use mapper instances through a container or otherwise, make sure you do not have any calls to the static Mapper.Map methods, and if you're using ProjectTo or UseAsDataSource extension methods, make sure you pass in the appropriate IConfigurationProvider instance.

I use [AutoMapFrom(typeof(Provider))] public class ProviderListDto : EntityDto { public string Name { get; set; } public string Email { get; set; } public Guid Guid { get; set; } }

I added

    public override void Up()
    {
        CreateTable(
                "dbo.Providers",
                c => new
                {
                    Id = c.Long(nullable: false, identity: true),
                    ProviderName = c.String(nullable: false, maxLength: 128),
                    Guid = c.Guid(nullable: false)
                })
            .PrimaryKey(t => t.Id);
    }

    public override void Down()
    {
        DropTable("dbo.Providers");
    }

run in package manager console update-database db not updated. error still present.

I have runned

PM> Add-Migration Provider Scaffolding migration 'Provider'. The Designer Code for this migration file includes a snapshot of your current Code First model. This snapshot is used to calculate the changes to your model when you scaffold the next migration. If you make additional changes to your model that you want to include in this migration, then you can re-scaffold it by running 'Add-Migration Provider' again. PM> Update-Database Specify the '-Verbose' flag to view the SQL statements being applied to the target database. Applying explicit migrations: [201609191116025_Provider]. Applying explicit migration: 201609191116025_Provider. Running Seed method.

I do not understand why public partial class Provider : DbMigration { public override void Up() { }

    public override void Down()
    {
    }
}

empty

Question

Can I use it (see topic)? How?

Question

I run project in debug and have error. Additional information: CREATE DATABASE statement not allowed within multi-statement transaction. What I do wrong?

Question

I have downloaded project from <a class="postlink" href="http://aspnetboilerplate.com/.I">http://aspnetboilerplate.com/.I</a> open in VS 2015 and try create new view (press right mouse button on View folder). VS depends. I turn off re# but no result. So I can not create view or include in project file.

Showing 1 to 6 of 6 entries