Search

You searched for the word(s): userid:875354

Matching Posts

  • Re: Business Logic Layer in the Presentation Layer

    Thanks for the help Nai, I end up recreating the fields as properties on the BLL, this way I can scalate that same BLL to another Presentation Layer in any form. Your sugestion was using DataTables I guess but I never was a big fan of them. So thanks anyway
    Posted to Architecture (Forum) by lsanchez0305 on 6/28/2009
  • How to communicate methods on different applications sharing classes?

    I have 2 applications, App A and App B . App A has class CLASS1 with properties and methods App B has class CLASS2 which has different methods that uses CLASS1 I have no problem creating a reference of the namespace that has CLASS1 on CLASS2 on the BLL of App B But I also use CLASS1 on the presentation layer of App B , is there a way to pass all the properties and methods of CLASS1 to the presentation layer of App B using CLASS2 or any other way without having to rewrite the CLASS1 on the BLL of
    Posted to Architecture (Forum) by lsanchez0305 on 6/28/2009
  • Re: Business Logic Layer in the Presentation Layer

    That's what I wanted to avoid. I wanted to rely all the code necessary to call fields on the DB on the DAL which is autogenerated with the drag & drop feature to create the .dbml. That way if I make any change on the DB I don't have to change any code anywhere on my application but in the Presentation layer where I call the properties, somehow with the BLL without typing the properties myself. Are you sure there isn't any other way to do this: DAL (Product's properties) ->
    Posted to Architecture (Forum) by lsanchez0305 on 6/14/2009
  • Re: Business Logic Layer in the Presentation Layer

    Perfect that's what I thought. The thing is when I do that for me to have access to the Product properties from the presentation layer it ask me to to retrieve them from DAL. If I make that method to return a Generic list with an object like this: public object GetProductById( int id) { NorthWindDataContext dc = new NorthWindDataContext(); var query = from u in dc.Product select u; List < Product > obj = new List < Product >(query); return obj; } I can populate a datagrid with no
    Posted to Architecture (Forum) by lsanchez0305 on 6/14/2009
  • Business Logic Layer in the Presentation Layer

    I just begun to develop my web app with LINQ to SQL but I want to get it right from the beginning. I created 2 class libraries: BLL and DAL. In the DAL I created the mapping for my LINQ to SQL to the Northwind DB. In the BLL I created a method like this: public Product GetProductById( int id) { NorthWindDataContext dc = new NorthWindDataContext(); Product result = dc.Products.SingleOrDefault(c => c.ProductID == id); return result; } Which return a single row of Product type that belong to the
    Posted to Architecture (Forum) by lsanchez0305 on 6/13/2009
Page 1 of 1 (5 items)