M
M
mindgrow2018-08-10 17:05:51
C++ / C#
mindgrow, 2018-08-10 17:05:51

How to hide the field of the parent class in the class heir?

Good afternoon!
I'm making a database of users / messages VK. To work with api I use VkNet. To work with the database - entityframework.
For simplicity, I don’t want to fence my set of entities, but I want to make database entities by inheriting from VkNet entities. But I ran into a problem that in some VkNet fields, for example, in the User entity, there are types without key fields. I want to hide fields with such types.
Can you tell me how this can be done or is there another way? The ways I found didn't help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
mindgrow, 2018-08-10
@mindgrow

this article helped
quabr.com/16726950/ef5-code-first-you-cannot-use-i...

S
Sanan Yuzb, 2018-08-10
@Sanan07

What is meant by the term "hide field"?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question