M
M
MZvagincev2018-07-03 10:21:21
OOP
MZvagincev, 2018-07-03 10:21:21

How to inherit from dll?

Good afternoon.
I have a class that describes database entities, this class is in dll.

//
    // Summary:
    //     Ссылочное значение с кодом.
    public class ReferenceCodeValue : ReferenceValue
    {
        //
        // Summary:
        //     Код значения.
        public string Code { get; set; }
    }
}

I want to add new entities, how can I do this without changing the class structure?
Table= new ReferenceCodeValue()
                               {
                                   Name= t.Name,
                                   Id = t.kl_TypeUID,
                                   Code = t.Type_U,
                               },

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
LiptonOlolo, 2018-07-03
@LiptonOlolo

Are you using EntityFramework to connect to the database?
If yes, then just dbContext.Table.Add(new ....); dbContext.SaveChanges();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question