外文文献翻译_第1页
外文文献翻译_第2页
外文文献翻译_第3页
外文文献翻译_第4页
外文文献翻译_第5页
已阅读5页,还剩7页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、 英文一原文:ado. net technology ado. net is designed for solving the web and program problem about the distribution application by microsoft. as a kind of visit frame of database, ado. net can handle the n layers data architecture which doesnt join that web application program requires, thus when visitin

2、g the database of sql server, superior performance has gotten extensive application. this paper discusses for this. i.the major object of ado.net. many objects in ado.net is similar to the object function in ado , but the function of the object in ado.net is more powerful. at the same time, except t

3、he objects of the connection, parameter and command , ado. net also add a lot of new object and program melt interface, such as dataset, dataview, dataadapter, datareader and datasetcommand etc.it make more simple to operate the database. i.a dataset object: dataset is the core of ado.net, is specia

4、lly used to handle the data which is read out from the stock , and keep it in local memory as away from line. we can use identical way to operate the data which is got from the different data source, the behavior of dataset is consistent whatever the base layer database is sql server or oracle. in d

5、ataset, it can contain arbitrary quantity of datatable, and every datatable is in correspondence with table or view in darabase. generally speaking,a corresponding datatable is a set of a group of datarow and datacolumn for the data sheet of elephant.datatable can take the responsibility for defendi

6、ng each data trip to retain its initial state and current state, with the concurrent that solves database visit problem. ado.net reduce the pressure of being away from line to join pattern decreasing for data server. i.b datareader object: when looking over mass data with the way that glanced over ,

7、 it will occupy plenty of memories and cause performance to drop. for instance,when a link (connection ) reads the record of 1000 lines of database by using the traditional ado recordset ,it must give this link memory distribution for this 1000 lines of record untill the life period of this link fin

8、ish. if there are many users carrying out the same operation for same computer at the same time,the memory will be used out. to solve these problems, dotnet frame has offered datareader object, from database,it return a read-only string, which can roll downward only to flow ( strem ), and exists a r

9、ecord every time only in courently. i.c dataview object: dataview object representative one datatable approach by looking over , it is to put data in order with the form of form that what data acquiesce in look over way, and the order of data that put data in order follow the order taking out the tr

10、ip that put litre and the fence position of row order in order from database data sheet, usually it is concerned with the sort order or reduce power in inquiring string when design the database .ado. net offer the way that has elasticity very much to let user use row order and condition filter , see

11、k etc. property way of looking over of defining difference , so, edit and glance over data or show the data in datatable .for instance ,we can establish a dataview object, then designate with with default look over ( defaultview ) different row order way, or also can use condition filter ( filter )

12、look over the partial data in data sheet. this kind of way can tie two above control items to a same data sheet, but what show is thay the different data. i.d dataadapter object: ado. net establish and initialize data sheet through dataadapter, so as to keep the data in the memory combining with dat

13、aset object. dataadapter object can hide the details that links up with connection and command. dataadapter object allow to put the data to the data source ( datasource )which gets from dataset object.it can also take out data from data source. by the same way,it can also operate the bottom data pre

14、served by adding ,deleting or modifing. ii.visit database in joining ii.a the analysis of a example which visit the database of sql server in ado.net technology abstract with the thorough that applied along with distributed database, permanent database connection consumes resource fairly. when visit

15、ing the database of sql server, it can solve this problem perfectly with ado . net technology . this paper primarily discusses net the major object of ado.net, and analyse the course of visiting sql server furtherly. keyword ado. net visit xml independently drawing the bottom graph of the map, add n

16、ew picture layer according to the fuction of defined , setting picture layer visibility and so on: / / constructs function function flashmap ( width: number, height: number, geo_x: number, geo_y: number ) layerscount = 0; layers=new array();stagewidth=width;stageheight=height;x=geo_x;y=geo_y;map_mc=

17、_root.createemptymovieclip(map_mc,0);map_mc.createemptymovieclip(map_mc,-200);/create object map = new flashmap( stagewidth, stagehight, mapx, mapy); /loading map function initmap () map. drawmap (); ii.b the information inquiry of the map datas:the inquiry of datais was mainly carried out by the cl

18、ick of mouse and the choose of frame on the flash which is loaded with the line,the point and the side of layer .we can see whether the field of the mouse choosing contain the object data through querying the courrent layer of the picture ,if exiting,to return the inquiry result in the new form simp

19、lyand show it to the user. the code of the script of mouse option:function select ( ) var selectedregion: array; selectedregion=new array();for(j=0;jmap.layerscount;j+)var coverlayer:maplayer=map.layers j;for(i=0;iconverlayer.regions_ary.length;i+)var region:mapregion=mapregion(coverlayer.regions_ar

20、y i);if(region.isinregion(_root._xmouse,_root._ymouse)selectedregion.push(coverlayer);selectedregion.push(region); iii. the practice of concluding remarks proves , in database the campus geography information that doesnt request too high, development data to lose comparatively demonstrate aspect, th

21、is is a kind of practical feasible , development the easy method with cheap cost. besides, with the network electronic map colour of this kind of method produce completion, it is rich , content much shape, if wander the network electronic map plane of fictitious realistic technology and this kind of

22、 produce method that combines and can come true the environment of campus geography with space wander. this kind of network electronic map demonstrate effect is traditional gis software which is nearly impossible to reach , in campus situation demonstrate and construct sub-district demonstrate etc.

23、field ,this kind of method have greater develop potential. 中文一译文:ado.net技术 ado.net 是microsoft 为解决web 和分布式应用程序问题而设计的。作为一种数据库访问框架, ado.net 能处理当今n 层的web应用程序所要求的非连接数据体系结构, 因而在访问sql server数据库时, 性能优越, 得到了广泛应用。本文对此进行了讨论。一、ado.net 的主要对象ado.net 中有很多对象与ado 中的对象功能相似, 但ado.net 中对象的功能更强大。同时, 除connection、paramete

24、r、command对象外ado.net 还添加了许多新的对象和程序化接口, 如dataset 、dataview、dataadapter、datareader、datasetcommand 等,使得对数据库的操作更简单。1、dataset 对象: dataset 是ado.net 的核心, 是专门用来处理从数据存储中读出的数据, 并以离线方式存在于本地内存中。可以使用相同的方式来操作从不同数据来源取得的数据, 不管底层的数据库是sql server 还是oracle, dataset 的行为都是一致的。在dataset 中可以包含任意数量的datatable, 且每个datatable 对应一

25、个数据库的table 或view。一般来说, 一个对应datatable 对象的数据表就是一组datarow 与datacolumn 的集合。datatable 会负责维护每一笔数据行保留它的初始状态和当前的状态, 以解决数据库的并发访问问题。ado.net 的离线连接模式减少了对数据服务器的压力。2、datareader 对象: 当以浏览的方式查看大量数据的时候,会占用大量内存, 导致性能下降。例如, 一个链接(connection) 用传统的ado recordset 对象去读1000 行数据库的记录, 则必须为这1000 行记录将内存分配给这个链接直至这个链接的生命周期结束。如果有多个用

26、户在同一时间对同一计算机进行同样的操作, 则机器内存将被过度使用。为了解决这些问题, dotnet 框架提供了datareader 对象, 从数据库返回一个只读的、仅能向下滚动的串流(strem), 而且当前内存中每次仅存在一条记录。3、dataview 对象: dataview 对象代表一个datatable 的数据查看方式, 数据默认的查看方式是将数据以表格的形式排列, 且数据排列的顺序遵循从数据库数据表中取出数据时行排列的顺序, 通常和设计数据库时的sort order 或在查询字符串中指明排序的栏位、升降幂有关。ado.net 提供非常有弹性的方式以供用户利用排序、条件过滤、查找等特性

27、来定义不同的查看方式,从而编辑、浏览数据或显示datatable 中的数据。例如, 可以建立一个dataview对象,然后指定和以缺省的查看(defaultview) 不同的排序方式, 或者也可以使用条件过滤(filter) 只查看数据表中的部分数据。这种方式,可以将两个以上的控制项绑定到同一个数据表, 但显示的是不同的数据。4、dataadapter 对象: ado.net 通过dataadapter 对象建立、初始化数据表, 从而和dataset 对象结合起来在内存中存放数据。dataadapter 对象能隐藏和connection、command 对象沟通的细节。dataadapter

28、对象允许将dataset 对象中的数据保存到数据来源(datasource) , 也可以从数据来源取出数据。同理, 也可以对底层数据保存体进行数据的添加、删除或修改操作。二、数据库连接访问ado.net 访问sql server数据库的实例分析 摘要 随着分布式数据库应用的深入, 永久的数据库联接是相当耗费资源的。在访问sql server数据库中, 采用ado.net 技术可以完美地解决这个问题。本文讨论了ado.net 的主要对象, 并深入分析了其访问sql server 的过程。 关键字 ado.net 独立访问xml据其定义的函数绘制地图底层图形、添加新图层, 设置图层的可见性等等:/

29、构造函数function flashmap (width:number, height:number,geo_x:number,geo_y:number) layerscount = 0;layers = new array () ;stagewidth = width;stageheight = height;x = geo_x;y = geo_y;map_mc=_root.createemptymovieclip ( map_mc ,0) ;map_mc.createemptymovieclip ( map_mc ,- 200) ;/创建实例map = new flashmap (stag

30、ewidth, stagehight, mapx, mapy) ;/装载地图function initmap () map.drawmap () ;2.4 地图数据的信息查询: 对于flash 上加载的地图各图层的点、线、面数据的查询主要是鼠标的点选和框选来实现的, 通过查询当前图层中是否有实体对象数据包含在鼠标选择范围内, 若存在则返回简单查询结果在新窗口中显示给用户。鼠标选择的脚本代码为:function select () var selectedregion:array;selectedregion=new array () ;for (j=0; jmap.layerscount; j

31、+) var coverlayer:maplayer = map.layers j ;for (i=0; iconverlayer.regions_ary.length; i+) var region:mapregion = mapregion ( coverlayer.regions_ary i) ;if ( region.isinregion ( _root._xmouse, _root._ymouse) )selectedregion.push (coverlayer) ;selectedregion.push (region) ;3.结束语实践证明, 在数据库要求不高、动态数据较少的校

32、园地理信息展示方面, 这是一种切实可行、开发容易、成本低廉的方法。此外,采用这种方法制作完成的网络电子地图色彩丰富, 内容多样, 如果把虚拟现实技术与这种制作方法的网络电子地图结合起来, 就可以实现校园地理环境的平面漫游和空间漫游。这种网络电子地图的展示效果是传统gis 软件很难达到的, 在校园地理位置展示和建筑小区展示等领域这种方法具有较大的发展潜力。英文二原文 the data binding technology in my project,i need to show the data from the database,so i need to use the data bindin

33、g technology which microsoft company support.in the following ,lets discuss it together.if you are familiar with classic asp, the declarative data binding syntax introduced in asp.net will be familiar to you even though the functionality is vastly different. data binding expressions are the code you

34、 see between characters in an aspx file. the expressions allow you to easily bind controls to data sources, as well as properties, expressions, and results from method calls exposed by the page. while this feature is easy to use, it often causes some confusion about what is allowed and whether it sh

35、ould be employed.data binding basicsdata binding expressions link asp.net page properties, server control properties, and data sources when the pages databind method is called. you can place data binding expressions on the value side of an attribute/value pair in the opening tag of a server control

36、or anywhere in the page. all data binding expressions, regardless of where you place them, must be contained between characters.when used with data controls (like repeater, datagrid, and so forth), the expression parameter is usually a column name from the data source. however, as long as it returns

37、 a value, any valid expression may be used. likewise, the same syntax may be used outside list controls. this includes displaying values on the page or populating control attributes.container.dataitem is a runtime alias for the dataitem bound to a specific item. it maps to an individual item from th

38、e data source like one row from a database query or an individual element from an array. the actual data type for the dataitem is determined by the data source. so, if youre dealing with an array of integers, the dataitem will be an integer.the following list provides a quick review of the vb.net sy

39、ntax for various scenarios:-an array of string values is returned. -the specific field from a dataview container is returned. -the specific string property value of data source is returned. -returns a property value converted to its string representation. when youre using c#, the syntax is a bit dif

40、ferent. the following list includes the corresponding c# code for each line in the previous list. notice the basic syntax is the same, but it changes when property values are returned and converted to the appropriate data type. syntax is consistent when working with page level properties and methods

41、. the syntax remains the same as long as string values are returned. the following list provides some examples:-the value for a page level property is returned. asp:listbox id=lstvalues datasource= runat=server-the value retrieved from the page level property (array, collection of objects, etc.) is

42、bound to the data control. -the value of the page level object property is displayed. -the value returned from the page method is displayed. you may use individual values (albeit properties, method return values, and so forth) on a page using the following syntax:the c# code in listing a demonstrate

43、s data binding in an asp.net web form. it selects employee names and telephone numbers from the sql server northwind employees table. the values from the query are displayed via an asp.net repeater control. the column values are inserted via data binding, and the forms window title is populated usin

44、g a method call. in addition, the itemindex property of the dataitem is used to display a row number. the itemindex property begins with zero, so one is added before it is displayed.listing b contains the equivalent vb.net code. the main difference is the use of parentheses as opposed to brackets in

45、 c#. also, the casting of the rows is not necessary with vb.net.using the contain.dataitem object can be tedious, since you must be aware of the data type and convert it accordingly for use. microsoft does provide the databinder class to further simplify development.microsoft documentation (on msdn)

46、 states the databinder class uses reflection to parse and evaluate a data binding expression against an object at runtime. this method allows rad designers, such as visual studio .net, to easily generate and parse data binding syntax. this method can also be used declaratively on a web forms page to

47、 simplify casting from one type to another.you can use the eval method of the databinder class to make .net do the heavy lifting when using data values in an asp.net page. the eval method accepts the previously covered container.dataitem object; it works hard to figure out the details of the field i

48、dentified in the expression and displays it accordingly. it has the following syntax:databinder.eval(container.dataitem, field name, optional formatting)using this syntax, you could rewrite the first example to use databinder.eval to look like the c# code in listing c. listing d contains the equival

49、ent vb.net code.the databinder.eval approach is great as it pushes work to the system. on the other hand, you should use it with caution, since time and resources are consumed as the system locates the element and determines its object/data type.plenty of optionsdata binding makes it relatively simp

50、le to include data in asp.net pages. there are various data binding options available, which include: binding the data to a control and allowing it to decide how it is presented, or choosing declarative data binding to control presentation within the asp.net page. in the end, it comes down to your p

51、reference, but it is great to have options.中文一译文:数据捆绑技术 在我的项目中,我需要从数据库显示数据,因此我使用数据捆绑的技术 它是由微软公司支持的。如下,我们一起来谈论它。 如果你熟悉经典asp,在asp.net介绍申明数据捆绑的句法与它在功能是有很大的不同。 数据捆绑的表达方式:就是能在aspx文件中以在此形式()之间出现的代码。 这种表达方式允许你把控件很容易地绑定到数据源,连同属性,语法,结果值同时在方法调用时在页面中显示。 当这些特性轻松的被使用时,由于它是否被允许能够被调用而经常造成一些的混乱。数据捆绑的基本原则:当databind方法被调用时,数据就捆绑到asp.net的控件属性,数据源。

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论