boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DotNet版 - DALFactory in PetShop 3
相关主题
visual studio为什么不加eclipse修改建议的功能
ASP .Net Portal starter kit 怎么结构那么差
petshop architecture 的变化
问个问题
HttpWebRequest小程序
关于SqlDataAdapter的初级问题求助
一个xml的问题。
listbox 的问题
Does .NET have built-in Cryptography?
website project
相关话题的讨论汇总
话题: account话题: petshop话题: dalfactory话题: dal话题: look
进入DotNet版参与讨论
1 (共1页)
L*******r
发帖数: 1011
1
It's not a factory. hehe. They must use macro to do the "copy" work. But the
code are too dirty
and not resuable.
Look at this:
namespace PetShop.DALFactory {
///
/// Factory implementaion for the Account DAL object
///

public class Account
{
public static PetShop.IDAL.IAccount Create()
{
/// Look up the DAL implementation we should be using
string path =
System.Configuration.ConfigurationSettings.AppSettings["WebDAL"];
string className = path + ".Account";
// Using the evi
1 (共1页)
进入DotNet版参与讨论
相关主题
website project
心得:use XPath (+namespace)
how to get reference.vb file?
webservice 只能定义一个函数吗?
请问关于shared cache
Do we still need DAL
分享一个今天遇到的.net调用mongodb的问题
同事的这个generic工厂interface让我蛋疼
C++ online Test 一题
function declaration
相关话题的讨论汇总
话题: account话题: petshop话题: dalfactory话题: dal话题: look