EDN Admin
Well-known member
<p style="text-align:left <span style="font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; font-size:14px This is the solution as far as it goes.<br/>
<img alt="" src="http://social.msdn.microsoft.com/Forums/getfile/136875" style="font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; font-size:14px; text-align:left
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; text-align:left
BOL. Business Object Layer. BL. Business Layer. DAL. Data Layer. (No web page in the solution since it will be a php one developed in a later process)
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; text-align:left
<strong style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent BOL references <strong style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent BL -
then <strong style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent BL references <strong style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent DAL .
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; text-align:left
I pretty much guess you know whats inside of each .cs file. So I really like this 3 tier architecture and keeping things separated (first time working this way). Now, when it comes to send and get data through the layers I ran across a few issues.
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; text-align:left
For instance: BL (methods.cs)
<pre class="prettyprint public class Methods { LineaDAL obj = new LineaDAL(); public DataSet GetLinea() { var ds = new DataSet(); ds = obj.GetLineaDAL(); return ds; } ////more code }[/code]
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; text-align:left
This works great, create an object from DAL (which is referenced) and then call DAL and retrieve data over a <code style="margin:0px; padding:1px 5px; border:0px; font-size:14px; vertical-align:baseline; background-color:#eeeeee; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif DataSet[/code].
Thats cool, and it works great for getting something out of the DAL/SQL.
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; text-align:left
But now Im working on an update, and Id like BL to call a DAL function sending to it a parameter. First thing Ive tried that parameter to be was of course an object from BOL. Wasnt possible for obvious reasons, BL doesnt know about BOL.
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; text-align:left
When this happened I started reading and found some good approachs. One of them, is to create a DTO... I dont like this one very much since I really like the top-down separated-enviroment in the tiers and layers. So I kept looking and found something related
to <code style="margin:0px; padding:1px 5px; border:0px; font-size:14px; vertical-align:baseline; background-color:#eeeeee; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif EventArgs[/code] and
some <code style="margin:0px; padding:1px 5px; border:0px; font-size:14px; vertical-align:baseline; background-color:#eeeeee; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif Interfaces[/code] as
well, but Im still scratching my head to see if Im in the right path.
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; text-align:left
Im cool working BL through DAL, DataSets and stuff. But is there a way to work with <strong style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent BOL Objects in the top layer? If this is not possible
in order to save the top-down references, should I use <code style="margin:0px; padding:1px 5px; border:0px; font-size:14px; vertical-align:baseline; background-color:#eeeeee; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif DataSets[/code] for
BOL <-> BL aswell? Is <code style="margin:0px; padding:1px 5px; border:0px; font-size:14px; vertical-align:baseline; background-color:#eeeeee; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif EventArgs[/code] the
way to go?
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; text-align:left
Thank you.
<br/>
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; text-align:left
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; text-align:left
<pre class="lang-cs prettyprint" style="padding:5px; border:0px; font-size:14px; vertical-align:baseline; background-color:#eeeeee; width:auto; max-height:600px; text-align:left <span style=" <span style="white-space:normal <br/>[/code]
View the full article
<img alt="" src="http://social.msdn.microsoft.com/Forums/getfile/136875" style="font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; font-size:14px; text-align:left
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; text-align:left
BOL. Business Object Layer. BL. Business Layer. DAL. Data Layer. (No web page in the solution since it will be a php one developed in a later process)
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; text-align:left
<strong style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent BOL references <strong style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent BL -
then <strong style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent BL references <strong style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent DAL .
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; text-align:left
I pretty much guess you know whats inside of each .cs file. So I really like this 3 tier architecture and keeping things separated (first time working this way). Now, when it comes to send and get data through the layers I ran across a few issues.
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; text-align:left
For instance: BL (methods.cs)
<pre class="prettyprint public class Methods { LineaDAL obj = new LineaDAL(); public DataSet GetLinea() { var ds = new DataSet(); ds = obj.GetLineaDAL(); return ds; } ////more code }[/code]
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; text-align:left
This works great, create an object from DAL (which is referenced) and then call DAL and retrieve data over a <code style="margin:0px; padding:1px 5px; border:0px; font-size:14px; vertical-align:baseline; background-color:#eeeeee; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif DataSet[/code].
Thats cool, and it works great for getting something out of the DAL/SQL.
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; text-align:left
But now Im working on an update, and Id like BL to call a DAL function sending to it a parameter. First thing Ive tried that parameter to be was of course an object from BOL. Wasnt possible for obvious reasons, BL doesnt know about BOL.
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; text-align:left
When this happened I started reading and found some good approachs. One of them, is to create a DTO... I dont like this one very much since I really like the top-down separated-enviroment in the tiers and layers. So I kept looking and found something related
to <code style="margin:0px; padding:1px 5px; border:0px; font-size:14px; vertical-align:baseline; background-color:#eeeeee; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif EventArgs[/code] and
some <code style="margin:0px; padding:1px 5px; border:0px; font-size:14px; vertical-align:baseline; background-color:#eeeeee; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif Interfaces[/code] as
well, but Im still scratching my head to see if Im in the right path.
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; text-align:left
Im cool working BL through DAL, DataSets and stuff. But is there a way to work with <strong style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent BOL Objects in the top layer? If this is not possible
in order to save the top-down references, should I use <code style="margin:0px; padding:1px 5px; border:0px; font-size:14px; vertical-align:baseline; background-color:#eeeeee; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif DataSets[/code] for
BOL <-> BL aswell? Is <code style="margin:0px; padding:1px 5px; border:0px; font-size:14px; vertical-align:baseline; background-color:#eeeeee; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif EventArgs[/code] the
way to go?
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; text-align:left
Thank you.
<br/>
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; text-align:left
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; text-align:left
<pre class="lang-cs prettyprint" style="padding:5px; border:0px; font-size:14px; vertical-align:baseline; background-color:#eeeeee; width:auto; max-height:600px; text-align:left <span style=" <span style="white-space:normal <br/>[/code]
View the full article