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.
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();
}
It is not giving proper results when I'm deleting an entity item.
Its inserting records for each property with old and new value same in [AbpEntityPropertyChanges] table.
And there is no clear information that this entity item is deleted and its deletion time, DeletedBy.
Is this due to using AuditeEntity in my Entity class? I'm using hard delete so I thought not to add these columns is deleted and its deletion time, DeletedBy to table.
Solved the issue, You can refer the below SO link.
[https://stackoverflow.com/a/48768242/6527049])
Thanks for your replies guys.
I have followed the steps mentioned in the below document to implement Entity History, But it's not working.
[https://aspnetboilerplate.com/Pages/Documents/Entity-History])
I have posted my implementation here.
[https://forum.aspnetboilerplate.com/viewtopic.php?f=5&t=10806])
[https://stackoverflow.com/questions/48761496/not-able-to-implement-entity-history-in-abp-framework])