Back to list
Views:   0
Replies:  0
Thanks Paul for inputs. I am looking into repository pattern. I m though not clear on how to access IsHatchBack property or HasFootPedal. When I do "input.", I only see Color and VehicleType as available properties. Using interface as an input parameter to method,, I cannot access properties that are in derived classes. Am I missing something?
Jan 24, 2015
This looks like Active Record pattern, you may also want to take a look at Repository pattern for persisting data. If you prefer this approach you may want to make Vehicle abstract and add Save to the Vehicle class as virtual so you can override it if necessary in the classes which need to check properties before saving.
Jan 21, 2015
Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Licensing       EULA       Sitemap      
© Data & Object Factory, LLC.
Made with    in Austin, Texas