arch / AutoHistory

A plugin for Microsoft.EntityFrameworkCore to support automatically recording data changes history.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

the data not save nested table

jindovu opened this issue · comments

Hi Team,
The value of before and after not save data with nested table, how can I log all data change include (table relationship change)

Thanks

Have some demo about this?

I have 2 table bellow, when I insert Product I want to get all data of Category with dynamic but now
it's working seperate table

public class Product{
	public int Id { get; set; }
	public int CategoryId { get; set; }
	public string Name {get;set;}
	
	public vitrual Category Category {get;set;}
}
public class Category{
	public int Id { get; set; }
	public string Name {get;set;}
	
	public vitrual List<Product> Products {get;set;}
}

Thank you for asking