P
Peter
Hi
we have traditionally developed applications with a 3-layer
architecture:
(1) a presentation layer (including ascx and code-behind);
(2) a service layer (providing an "api" for use by the presentation
layer to obtain the data it requires);
(3) a data-access-layer (providing for interaction with a data store,
mostly a database);
In addition to these "layers", we usually make component interface
assemblies which contain relevant interfaces for each component (for
example an IUserService or ICustomerDal); and a data assembly
containing concrete data classes used in a component for transporting
data between the layers (here for example a User class or a Customer
class).
Can this layered structure be maintained if LINQ to SQL or LINQ to
Entities is used for data access? Can LINQ to SQL conform to a
"data-access-interface" for example, so we can "swap out" the generated
data-access-layer with another dal via configuration?
Thanks,
Peter
we have traditionally developed applications with a 3-layer
architecture:
(1) a presentation layer (including ascx and code-behind);
(2) a service layer (providing an "api" for use by the presentation
layer to obtain the data it requires);
(3) a data-access-layer (providing for interaction with a data store,
mostly a database);
In addition to these "layers", we usually make component interface
assemblies which contain relevant interfaces for each component (for
example an IUserService or ICustomerDal); and a data assembly
containing concrete data classes used in a component for transporting
data between the layers (here for example a User class or a Customer
class).
Can this layered structure be maintained if LINQ to SQL or LINQ to
Entities is used for data access? Can LINQ to SQL conform to a
"data-access-interface" for example, so we can "swap out" the generated
data-access-layer with another dal via configuration?
Thanks,
Peter