I have a type that is derived from the Entity generated by the Entity Framework 3. How do I assign a single Customer Order property to the Derived Customer Order property?
derivedCustomer.Orders = customer.Orders
I am not trying to change orders; this is just an example of what I'm trying to achieve. Has anyone tried this and succeeded?
Scroll through each entry and add to another collection:
foreach (var order in customer.Orders) derivedCustomer.Orders.Add(order);
You can also make the extension method to make it seamless as well.
Source: https://habr.com/ru/post/1775771/More articles:Monotouch Threading - Best Design - multithreadingRenaming Routing Helpers in Rails 3 Routing - ruby | fooobar.comSilverlight 4: chart management - chartsAn effective way to find pairs that satisfy a certain condition - wolfram-mathematicabest practices for using window.open () - javascript.NET MVC2 - Мой URL-адрес области не регистрируется? - asp.net-mvc-routingNDK OpenGL undefined link to glVertexPointer - android2-мерные массивы в C - cВыполнение телефонного звонка из приложения iPhone - iphoneHow to get CustomValidators to fire simultaneously with RequiredFieldValidators - c #All Articles