I have two models, say Product and Bundle. products table is related to product_prices table and bundles to bundle_prices (need to make these separations to support multiple currencies)
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing
Let\'s say we already have a hierarchy of classes, e.g. class Shape { virtual void get_area() = 0; }; class Square : Shape { ... };
I am trying to write XML Schema by existing XML format description (i.e. document - free form description of elements multiplicity and types). My final idea is to feed such XSD to code generator and g
I have 2 classes: public class ClassA public class ClassB (from another namespace) : ClassA I use开发者_运维技巧 method at ClassA
// Cannot change source code class Base { public virtual void Say() { Console.WriteLine(\"Called from Base.\");
What is the better way to reuse implementation: inheritance or generics? The model is following: Script has Steps, Steps have Elements. Tree structure is double linked, i.e. Steps know their Script a
I changed my photo.rb model to be polymorphic and be usable to all sorts of other models needing to save images and it works fine except I can\'t figure out how to save new attachments properly throug
I can\'t think of a \"best\" way of handling the following situation - basically, I have a bunch of stored objects that inherit from a base type and would like to be able to retrieve one from storage,
I have the following method that takes in a details object, validates it, converts it to a request and enqueues it. Everything is fine apart from the validate request which I am having trouble with. B