We are using two database in that i need to inherit this model or entity table alone. For this how to specify database name for particular class or entity table in entity-frame work. It is possible?
Database Name: "Test1"
public class User : BaseEntity
{
public string Email { get; set; }
public string Password { get; set; }
}
now how to set this model as navigation property in another model. like,
Database Name: "Test2"
public class Test: BaseEntity
{
public int UserId { get; set; }
public virtual User User { get; set; }
}
public class BaseEntity
{
public int Id { get; set; }
}