English 中文(简体)
• 如何决定是否分割VB。 申请净额,如果是,如何分开?
原标题:How to decide whether to split up a VB.Net application and, if so, how to split it up?

我有2年5月1日至2日的经历。 如果我似乎仍然不明白某些基本原理,那么我就与我有关系。 我建议你先抓茶叶,然后开始,因为看起来早了......。

目前,我的申请量很大(VB.Net网站),超过15 000条。 它没有零售,也没有像零售这样的特别复杂的东西,实际上只是一个有行政前线、目录/目录管理系统和页面访问系统的批发网站。

我并不真正知道如何。 净应用在背景中发挥作用,无论这些应用都装在同一个线上,还是如果它们有自己的线上。 我刚刚知道如何制定这些草案,或至少想我这样做:

我的申请基本如下:

  • There are two different areas - the customer area and the administration frontend.
  • The main part of the customer frontend is the Catalogue. The MasterPage will load a list of products but that s all, and this is common to all the customer frontend pages.
  • I tend to work on only one or several parts of the application at a time before uploading the changes. So, for example, I may alter the hierarchy of the Catalogue and change the Catalogue page to match the hierarchy change whilst leaving everything else alone.
  • The pageview database is getting really quite large and so it is getting rather slow when the application is first requested due to the way it works.
  • The application timeout is set to 5 minutes - don t know how to change it, I have even tried asking this question on here and seem to remember the solution was quite complex and I was recommended not to change it, but if a customer requests the application 5 minutes after the last page view then it will reload the application from scratch. This means there is a very slow page load whenever it exceeds 5 minutes of inactivity.

我不敢肯定,如果需要考虑,如何最好地分拨申请,如果是的话,但目录系统的每一部分都设置如下:

  • A Manager class at the top level, which is used by the admin frontend to add, edit and remove items of the specified type and the customer frontend to retrieve a list of items of the specified type. For example the "RangeManager" will contain a list of product "Ranges" and will be used to interact with these from the customer frontend.
  • An Item class, for example Range, which contains a list of Attributes. For example Name, Description, Visible, Created, CreatedBy and so on. The form for adding / editing loops through these to display relevant controls for the administrator. For example a Checkbox for BooleanAttribute.
  • An Attribute class, which can be of type StringAttribute, BooleanAttribute, IntegerAttribute and so on. There are also custom Attributes (not just datatypes) such as RangeAttribute, UserAttribute and so on. These are given a data field which is used to get a piece of data specific to the item it is contained in when it is first requested. Basically the Item is given a DataRow which is stored and accessed by Attributes only when they are first requested.
  • When one item is requested from a specific manager is requested, the manager will loop through all the items in the database and create a new instance of the item class. For example when a Range is requested from the RangeManager, the RangeManager will loop through all of the DataRows in the Ranges table and create a new instance of Range for each one. As stated above it simply creates a new instance with the DataRow, rather than loading all the data into it there and then. The Attributes themselves fetch the relevant data from the DataRow as and when they re first requested.

我认为,每当我确定一条小小小小小小小 b或拼写的错误时,我就认为,整份申请要重新编篡和上载,这似乎只是一个荒唐的 st脚石(例如,如果我以动态方式确定拉贝尔案文的话)。 对目录页的固定/改动,即现在的方式,可能意味着一个客户试图查看联系页,该网页与目录页不同,除了拥有相同的主人,因为DL正在上载。

从根本上讲,鉴于我目前的情况,我的问题是,人们如何建议 我改变应用结构,将其分成多个应用? 我指的是,这只是客户/行政,还是客户/行政和页面访问,或者以某种方式? 或者根本不是? 我没有在这里提及任何其他替代办法吗? 网络服务能否在这里提供? 如同将目录本身分为不同的应用,而其他所有网页的主页也只是利用网络服务,将产品名称列入左手边? 我只是这样说吗? 根据这个问题的长短来判断,我可能是第一次。 我试图保持这一节奏,但我总是失败......

如果我刚才完全混淆了你的话,我们会事先给予很多谢意和担忧。

关于

Richard

最佳回答
  1. 15 000 LOC并不是真的如此。

  2. 如同你一样,它不预设贵的出版网站。 http://msdn.microsoft.com/en-us/library/1y1404zt(v=vs.80).aspx” rel=“nofollow” http://msdn.microsoft.com/en-us/library/1y1404zt(v=vs.80)。

  3. 完成和上载申请是这样做的最佳途径。 如果你们的标志正在发生变化,可以单独上载(例如,在 as页上改变约html的布局)。

  4. 我不知道你通过申请时间来这里指的是什么,但如果您的域网每5分钟回收一次,那么这似乎根本不正确。 你们应当研究这一点。

此外,如果你发现自己在网站的不同部分(即许多不同的变化)上工作,但只需要单独部署某些物品,那么,你应研究你如何使用你的源头控制工具(你正在使用一种器,是你?)。 参看GIT和分支/合并。

问题回答




相关问题
Is Shared ReadOnly lazyloaded?

I was wondering when I write Shared ReadOnly Variable As DataType = New DataType() Or alternatively Shared ReadOnly Variable As New DataType() Is it lazy loaded or as the instance initializes? ...

Entertaining a baby with VB.NET

I would like to write a little application in VB.NET that will detect a baby s cry. How would I get started with such an application?

Choose Enter Rather than Pressing Ok button

I have many fields in the page and the last field is a dropdown with list of values. When I select an item in a dropdown and press Enter, it doesn t do the "Ok". Instead I have to manually click on Ok ...

ALT Key Shortcuts Hidden

I am using VS2008 and creating forms. By default, the underscore of the character in a textbox when using an ampersand is not shown when I run the application. ex. "&Goto Here" is not ...

Set Select command in code

On button Click I want to Set the Select command of a Gridview. I do this and then databind the grid but it doesn t work. What am i doing wrong? protected void bttnView_Click(object sender, ...

Hover tooltip on specific words in rich text box?

I m trying to create something like a tooltip suddenly hoovering over the mouse pointer when specific words in the richt text box is hovered over. How can this be done?

热门标签