I have the following situation: I have a class Company, it is as simple as possible 

```
public class Company
{
    public int ID { get; set; } 

    public string Name { get; set; }
}

```

I also need to extend the IdentityUser class from ASP. NET Identity Core:

```
public class User : IdentityUser
{
    public Company Company { get; set; }

    public int CompanyID { get; set; }
}

```

Not bad so far. But I also need a class Device :

```
public class Device
{
    public Company Company { get; set; }

    public int CompanyID { get; set; }
}

```

Accordingly, we add the Devices property of the `List<Device>` type to the Company class and Users property of the `List<User>` type. 

The problem is that I want to separate the data (Device table) from the data of ASP .NET Identity Core in different databases. Table Company I want to put in the database with Auth data. And table Device in other one. How can I tell the Entity Framework that the Company property of the Device class is from another database?