|
I am trying to write a layered app in vb 2005 .NET
I think on a 2 physical levels/tiers: host with a DB, and client (desktop), both not interconnected (except for internet)
Host: will contain the DB (SQLServer) , the Data Access Layer DAL, and a Web Service layer, WS_CH
desktop, will contain the application (winforms), and Business Logic layer BLL. The BLL will call the (remote) WS_CH, this will call the DAL and this will attack the DB. OK.
I will use a Data Transfer Object DTO to pass data up and down all the stream, from the UI to the DB and back. This DTO can be an untyped dataset, in which case all the assemblies involved (in fact, all I mentioned) will contain a reference to System.Data.
But.... what if I want the DTO to be a custom class, living in a independent assembly, and possibly hosted in the client. How will the host receive and handle a reference to that (remote) object.
Have I to place the DTO in the host (because from the client I know the URL and then I can reference it)?. If not, i suspect I have to use remoting technology, or activator, or reflection, or the new WCF in 3.0,... but I cannot find my way to that.....
Any hint, please? thx
|
|
|
|
|
This thread might help to get you started:
Clickety[^]
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
thx, that thread deals on dataset versus other structures as Data Transfer Objects, and this is OK, but if the DAL in a remote host has to deal, say, with a typed dataset or a custom class or custom collection defined in the desktop (in an assembly who seats in a desktop, I mean), how can the DAL (in the host) get a reference to that????
|
|
|
|
|
Actually, the thread deals with defining the structure of the class in the datalayer (I know because I wrote that thread as well). Once the structure is defined in the DAL, then it can be made available across all the tiers. So, the DAL can populate the collection, and new entries can be added in the business layer and saved back via the DAL.
So, if you reverse your thinking, you start with the entity in the DAL and then this gets exposed to the business layer (and on into the presentation layer).
The beauty about this approach is that you remove the need to reference things such as System.Data in the front end, and as I stated in that thread you can expose this to other programming environments as well.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
thx, letting the DTO live in the host, together with the DAL "it gets exposed to the BL and presentation layer"... but, how, if DAL/DTO and BL/PL are in different computers, only visible through internet?
thx
|
|
|
|
|
If you are using a webservice, the definition of the class (well a proxy version), will be added to the business layer when you add in a web-reference. This means that you can pass this back and forwards without worrying about it.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hiya,
Not sure if you're still looking at this, but I came across a similiar problem where in the BLL and UI layers I had my own data objects that were hosted in the client or a webservice. Communication from the BLL to the DAL is remoting.
I didn't want the DAL to have any knowledge of these objects because these objects were "plugins" and the DAL could not possibly be able to reference the objects.
What I did was implement functionality to disassemble custom classes (in the BLL tier) into a generic object which was then passed into the DAL. All my custom classes inherit from a general object providing methods and properties to extract the data from the custom class, which helped disassemble the data.
Hope this helps
Cheers,
Ty
|
|
|
|
|
thanks, remoting is the answer I was looking for. Anyway, with framework 3.0 maybe the right way is to use WCF windows communication foundation that seems to combine webservices and remoting in a unified skeleton
thx
|
|
|
|
|
Hi All
Can someone share with me the architecture or Design for any large localization Web project which primarily publishes the content , I mean
something like MSDN help being localized to different languages.
Please suggest me how I can approach for localizing MSDN if I have all my resource files in XML format.
The guy in China should see in Chinese and in US in English , also
1)There are some security implications to be added like all content should not be seen in a particular page outside USA, only specific sections pertaining to that country should be seen in that localized language.
2)Can manifest of an assembly be useful in doing a dynamic way of localizing.
Any reference or suggestions with the pros and cons of the architecture is highly appreciated as this is a bit urgent need.
Rgds
Ind_Coder
|
|
|
|
|
Whenever I've done this in the past, I've tended to create a table (say Article), with a subtable (say Content). The table structure tends to look like this:
Article
Article Id
article attributes
Content
Content Id
Culture Info
Article Id
Content
Then, you can serve up the content to the user based on their localization settings. If there is no content in that particular locale, then I work back up the tree. For instance, if the users locale is FR-Fr (French France) but there is no content where the culture info is FR-Fr, then I go back to look for FR. If there is no content in that culture, then I fall back to the default content (in my case, usually English).
Now, in your case, you might want to have another table called something like AllowedLocale which would contain the Culture Info that you wanted to allow. Be aware though, that the Culture Info is not foolproof. It is entirely dependent on what the user has selected at their end, so a user will still get access to your content if they have the same Culture Info set up at their end as you have allowed at your end.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
i need help in open gl of c++..mostly into computer graphics(CG)..can i post my doublt here..
|
|
|
|
|
makaveli_07 wrote: can i post my doublt here..
If it is a design issue, yes. Whether to program it with one method or another, which is fastest, how to know what is fastest, etc.
If it is an issue specifically related to OpenGL, we don't really have a forum for it. Visual C++ might get you the answers you are looking for, or posting at another forum specific to OpenGL[^].
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
|
|
|
|
|
Those interested, Microsoft Architecture Journal issue 10 is now available covering such subjects as Composite Applications.
www.architecturejournal.net[^]
modified 1-Aug-19 21:02pm.
|
|
|
|
|
Richard A. Abbott wrote: Microsoft Architecture Journal issue 10 is now available
So why did you link to issue 9?
|
|
|
|
|
The link I gave was to the front page of this particular web site. Perhaps Microsoft have failed to update their front page to reflect the existence of this brand new issue which I received through the post today.
modified 1-Aug-19 21:02pm.
|
|
|
|
|
Richard A. Abbott wrote: Those interested, Microsoft Architecture Journal issue 10 is now available covering such subjects as Composite Applications.
It's a good issue. I just wish they wouldn't use so many big words. Makes my head hurt to read some of it.
|
|
|
|
|
Michael P Butler wrote: big words
Couldn't possibly be fun without them.
Regarding the article about data quality problems, do you accept the comment that it should be renamed as "Data Quality Deficiency Syndrome"? To me, it is starting to sound almost like some kind of medical diagnosis.
modified 1-Aug-19 21:02pm.
|
|
|
|
|
According to an email, the 10 issue on line is just a preview offered to current subscribers, so maybe they have not updated to 10 on the site as they have not officially released it?
Our developers never release code. Rather, it tends to escape, pillaging the countryside all around.
The Enlightenment Project (paraphrased comment)
|
|
|
|
|
As stated above, Microsoft haven't updated their architecturejournal.net web site. The publication most definitely exists. How could I have made a reference (above message) regarding the content of the article on data quality without the actual publication being in front of me?
modified 1-Aug-19 21:02pm.
|
|
|
|
|
Ok,
I havnt gotten mine yet, just recieved an email last week stating that you could get a peek at the online content before the mag got shipped.
AAron
Our developers never release code. Rather, it tends to escape, pillaging the countryside all around.
The Enlightenment Project (paraphrased comment)
|
|
|
|
|
Hi All,
We are starting a project (.NET/C# DB: SQL Server) and one of the main requirements is performance and reliability (the system is a "mission-critical" one).
Could you please indicate articles/books/sites that could help us on:
- Defining the minimum hardware requirements (how many redundant servers should be considered, RAIDs, etc.) based on the expected number of user/requests,ammount of data etc.
- Technologies that could be used in order to support the desired reliability ( distributed services, load balance for example)
Thanks a lot,
Sergio
|
|
|
|
|
Have you accomplished this?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Hi,
I have to develop a application which have many forms. Every form have datagridView , Dataset.
I want to put out of the code of my form, the operations of filling the dataset and displaying the datagridview ... The question is which Design pattern should i use???
Strategy pattern or Builder???
Thank you for your answers and sorry for my bad english
|
|
|
|
|
There are many ways to write something, so the choice isn't always obvious. But that also means the choice is not always one or another, and certainly not without knowing more of the design considerations.
Take your design needs/goals and compare them to the various design patterns. Some will be obvious, some will be maybe. Narrow it down rapidly with your what-if comparison. Then do a serious compare. "If I wrote this as a ... how complex would it be?" Complexity and fudging datasets to force them into that design pattern is a pretty good sign that this is not a good design. The one that flows the best for the needs of the system is your choice.
Refactoring later means you made a choice, but design considerations changed along the life of the project and now we need to push it toward another design. This happens too.
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
|
|
|
|
|
We have been using Plumtree G6.0 Portal integrated with ASP.NET 1.1
We have been using standard header/footer of plumtree and we used to refresh other portlets from these portlets.
We need to remove Plumtree and to handle the entire functionality in .NET only
We thought of using Frames, but it could not be possible because of its limitations, bookmarking,browser back button and the page scrolling.
In plumtree, scrolling will happen for the entire portal page, even if one of the portlet contents are more than the screen height.
But for Framse, it adds scrollbars to Frames and not to the page.
If we incorporate Header and Footer as user controls and embed them in all the pages, then on every post back, the entire page will be posted back. We we want to have it like header and footer and they refresh the intermediate portlet.
1. How portals are refreshing the contents of one portlet from another.
2. If we use AJAX, will it preserve updated viewstate? Whether ATLAS has got this functionality?
3. Any solution for this?
4. Suppose if we the existing Framework 1.1 what else would be the best way go to?
|
|
|
|