关于企业图书馆 [英] Regarding Enterprise library

查看:90
本文介绍了关于企业图书馆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个项目,其中我使用了Microsoft企业库概念。

为此,我创建了以下类库

1)业务实体 - 用于声明表的变量

2)业务逻辑 - 我已经包含了BusinessEntities参考,用于编写插入,更新,删除和获取记录的函数

3)DAL - In那里有与数据库相关的功能。



我也创建了WCF服务应用程序并在不同的类库中实现了wcf服务



在该库中我添加了业务逻辑参考。



通过构建该类库,我已经创建了该服务的代理类,我有存储在不同的库中。



当我从作为Web应用程序的表示层插入,更新,删除和提取记录时,请给我编码的步骤。



我ave像这样流程创建..只是检查它是否正确:

我创建了Web应用程序,我通过代理调用此wcf服务。在Web应用程序中,我添加了业务逻辑,业务实体,WCFProxy reference.I我在业务实体类中传递输入的值并调用wcf服务类,但正如我所说,我没有在该库中添加业务实体引用,所以我没有得到该类的对象。我应该在wcf服务库中包含业务实体引用,因为业务逻辑中的refrece已经存在,并且wcf服务中存在业务逻辑引用..

请帮助我..

如果你有关于插入的任何样本,使用企业libray更新和删除记录。然后分享这个或者建议我流程..

I have created project in which i have used Microsoft enterprise library concept.
For that I have created the following class library
1) Business Entities - For declaring the variables of tables
2) Business Logic - Where I have included the BusinessEntities reference for writing the functions for insert, update, delete and fetching the records
3) DAL - In which functions related to database are there.

Also I have created the WCF service application and implement that wcf servicein different class library

In that library i have added the business logic refrence.

By building that class library i have created the proxy class for that service which i have stored in different library.

Kindly give me the steps of coding when I am inserting, updating, deleting and fetching records from presentation layer that is web application.

I have created like this flow..just check it is right or not:
I have created the web application where i am calling this wcf service through proxy.In web application I have added Business Logic, Business Entities, WCFProxy reference.I am passing the entered value in the business entity class and calling the wcf service class but as i said i have not added business entity reference in that library so i have not get the object of that class.should i have to in clude business entity refrence in wcf service library because that refrece is alredy there in business logic and that business logic reference is there in wcf service..
please help me ..
If you have any sample regarding the insert, update and delete records using enterprise libray.then kindly share this or else suggest me the flow..

推荐答案

你好,



我对你的问题不太清楚,但据我所知,你需要一个松散耦合的UI。



你正在采取正确的方法。我仍在解释它



Hi,

I am not too clear about your question, still as I understand you need one loosely coupled UI.

you are going through a right approach. still I explain it in sort

DAL (Data Access Layer) > BL ( Business Logic ) > BE ( Business Entity ) > WCF > Proxy Class > UI





如果你想创建一个高端应用程序然后不要在前端使用BE,因为有一天你可能需要在那里更改业务逻辑,因为您需要一些额外的数据点,因此您需要更改BE但新数据点对UI没有影响,但是当您从UI中获取BE时仍需要重新部署UI。



因此,创建单独的UI实体,您可以将其命名为ALL(应用程序逻辑层)。



现在如何使用WCF使用CRUDE ,



http ://msdn.microsoft.com/en-us/library/orm-9780596520281-01-14.aspx [ ^ ]


这篇关于关于企业图书馆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆