The difference between Abstract Factory and Factory Method has been blurred over the years. If you look at differences between the original GOF UML diagrams of Abstract Factory and Factory Method you see in Abstract Factory ´a higher level of abstraction´ (there are several abstract types involved, hence the name Abstract Factory).
To alleviate any confusion, we should probably remove the sentence: "This is exactly where Abstract Factory and Factory Method differ: Abstract Factory methods are virtual or abstract and return abstract classes or interfaces. Factory Methods are abstract and return class types. "
The sentence is generally true, but there are most likely edge cases where things are done differently. Also, it would probably be safer to state that methods in Factories (both types) return classes, abstract classes, or interfaces. This would cover all possible factory implementations.
Dan McMillan, Dec 12, 2010
Hi Dan, Thanks for the advice. I tried what you mentioned but not working. Let me give you the environment I am working on. Stand alone laptop with Windows 7 (ultimate edition). SQL server 2008 developer edition Sql server 2008 R2 Express edition (removed now) Sql server 2005 Express edition with SP2 Visual studio 2010 ultimate edition I made a small change in WCF application app config for localsqlserver to point SQL server 2008 developer edition (where i have aspnetdb). So now atleast the login part is working. But failing at GetCustomers in Model.cs with the error message 'The underlying provider failed to open'. There is a image of error attached with this post. I tried to attach Action.mdf and aspnetdb.mdf to both the sql server instances and it failed. Basically I am trying to point at the databases in developer edition instad of attaching at runtime. Please give me some suggesstions where to make changes in the config files. Thanks Viv
Sep 04, 2010