This link has been bookmarked by 6 people . It was first bookmarked on 17 Dec 2007, by wonglh.
-
10 Jun 09
Riccardo PietrucciEntityFramework mette a disposizione tre tipi di inheritance: Table Per Hierarchy, Table Per Type, Table Per Concrete Class
.net ado ado.net architecture c# database entity entityframework ef inheritance tbh tbt tbct
-
17 Dec 07
-
This simply means that one object is a specialization of the other. For example, think of an online store with Products. A Product has certain attributes and data associated with it. Now, there is also a Discontinued Product which has all the same data as a regular Product, but also something more, namely a discontinued date.
-
You could create a new object to represent the Discontinued Product, but it makes a lot more sense to create a new object that inherits from Product, and adds the additional field.
-
You simply need to write a new object that inherits from Product and applies some different logic in its methods. For example, you might only show summer products in the summer or automatically provide a 10% discount for summer products in the fall. And all of the existing systems to manage inventory, shopping carts, etc just continue to work, as everything is still made up of Products!
-
-
16 Mar 07
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.