Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "manojreddy"

I have sent mail to <a href="mailto:[email protected]">[email protected]</a> regarding my query, please check.

I have tried clean, rebuild, restart visual studio, but I'm getting the same message mentioned in the previously attached image.

There is no warning before "Running add-migration".

I have updated to version 1.2.3.

FYI: I have downloaded the separate 5.1.0 version project and for this on the same machine with the same visual studio, its working fine.

My Scenario: I was using some previous version (< 5.1.0 ) and manually copied AspNetZeroRadTool folder to my existing project.

I'm trying to create Entity using RAD Tool. But its giving error Build Failed on Add-Migration and Update-Database.

But If I build the solution manually, it's building successfully and I'm able to add migration and update database.

Please let me know how can I debug this issue?

Yes you can use the code in my initial post.

yes, that's what I'm saying.

Why should I set it explicitly? I'm getting it from DB only.

I'm not stupid

Why should I set it explicitly?

entity2.Id is 1

I'm passing the correct value of entity2.Id and I have tried to see in debug mode also.

Does it work with the in-memory (default we have in abp framework) database?

public static void Register(IIocManager iocManager)
{
	RegisterIdentity(iocManager);

	var builder = new DbContextOptionsBuilder<MyCompanyDbContext>();

	var inMemorySqlite = new SqliteConnection("Data Source=:memory:");
	builder.UseSqlite(inMemorySqlite);

	inMemorySqlite.Open();

	iocManager.IocContainer.Register(
		Component
			.For<DbContextOptions<MyCompanyDbContext>>()
			.Instance(builder.Options)
			.LifestyleSingleton()
	);

	new MyCompanyDbContext(builder.Options).Database.EnsureCreated();
}

I'm running test cases for creation, updation, deletion of Entities, But I cannot see Database entries to verify records. Is there any way to view SQLite DB?

Showing 51 to 60 of 267 entries