I recently imported my database with Entity Framework, and it created models for me. I don't know how to use the types that I got from this. Here is what my model is:
For my other model, named ShoppingModel
, I call the classes in the model with `ShoppingModel.Customer', for example.
I can't call these classes this simply here because they aren't direct paths in EntityModel
, but I also can't call them doing EntityModel.ShoppingModel.ShoppingDbContext.Customer
to use the type of variable. Is there a way to call these types? I need to use them for my project.
Thank you for help!
edit:
I am trying to create a mapping between two variables. I want to put data into one of my entity objects, and then map it over to my normal object, which I call the Shopping Object.
Here, I am using my ShoppingModel's Customer variable. I want to use my EntityModel's Customer variable, but it's not quite as simple as saying 'EntityModel.Customer'.