-3

I have not knowledgement about ASP.NET programming, only C# programming (Desktop Apps, not Web-based apps). I have been assigned to a projet which is web-based using ASP.NET. The part of GUI (Web and ASP.NET) is done by another person and I only do the part related to C# programming (not web, lower level) that have to communicate with a SQL database in order to process the events raised from the ASP.NET GUI. So I would like to know which is the best way to work efficiently in this scenario. Is it better that my part C# (Not web) be a DLL and then called from ASP.NET code (by the person who is in charge of ASP.NET coding)? I think it is necessary to define an interface between ASP.NET GUI part and my part. By the way, I think that it is a good practice to use MVC pattern here, but how to isolate the two parts correctly to avoid conflics (as one person implements ASP.NET GUI and I, the lower level C# communication with database)? I do not want to have any kind of problems when integrating the two parts. I highly appreciate suggestions.

4

1 回答 1

1

听起来您负责实施Repository Pattern

我的建议是创建一个包含这些存储库类的程序集,您的 MVC 程序员可以使用它们返回信息以供显示,并将这些相同的类用于实际任务。

不要在存储库中使用“插入”和“更新”方法。与任何要求您这样做的人坐下来,清楚地了解正在完成哪些工作单元,这样您就可以在您的存储库上创建明确定义的方法。

于 2013-04-21T15:16:32.407 回答