我们必须确定是否真的需要一个集合,或者是否可以用一个或多个通过数据库操作该对象集合的方法来代替该集合。
We must determine if a collection is really necessary or if we could replace the collection with one or more methods that will operate on the collection of objects through the database.
还应查阅本教程最后的参考资料,获取关于数据库对象和编程方法的更多信息。
You should also review the Resources at the end of this tutorial for more information about database objects and programming methods.
如果在模型中添加检验方法,那么在对象保存到数据库中之前就会执行检验。
Adding validation methods to a model causes validation to occur before the object is saved into the database.
不过,如果您已经小心地隔离了一些对象方法内的数据库访问代码,则修改将很可能十分轻微且集中。
However, if you've carefully isolated your database access code within a handful of object methods, your modifications will likely be slight and centralized.
至于操作,在面向对象的上下文中,可以认为存储过程在概念上类似于由底层数据库实现的全局方法。
In terms of operations, and in the context of object orientation, you can think of stored procedures as conceptually similar to global methods that are implemented by the underlying database.
按照一种不同的开发方法,您就能够通过简单的逆转数据库工程来创建您的域对象了。
Following a different development approach, you are able to create your domain objects by simply reverse engineering the database.
图形设计器它允许您轻松地将数据库对象,如表和存储过程映射为LINQ到SQL的类和方法。
It's a graphical designer which lets you easily map database objects such as tables and stored procedures to LINQ to SQL classes and methods.
本系列前两篇文章详细介绍了如何使用内联方法和数据访问对象(DAO)来访问数据库。
The first two articles of this series described in detail how to use inline methods and how to use data access object interfaces (DAOs) to access the database.
第三种方法是创建能够用来查询数据库对象模型的查询语言。
The third option is to create a query language that can then be used to query the database's object model.
另一种处理数据库连接的方法就是使用数据源(datasource)对象。
An alternative way of handling database connections is to use data source objects.
在这里,为了测试对象的fdfdfd方法,我们最终需要建立一个数据库连接,给表添加一些记录,然后在测试之后清除所有这些资源。
Here, in order to test the FDFDFD method in the object, we end up needing to setup a database connection, have records in the table, and then clean up all these resources after the fact.
Optim DevelopmentStudio提供一种简单的方法来在开发或测试环境中的某个功能需要的数据库之间复制和粘贴对象和数据子集。
Optim development Studio offers an easy way to copy and paste objects and data subsets between databases that are needed for a certain function in the development or test environment.
由于连接池有许多优点,所以在Web应用程序中偏爱使用数据源对象的方法来处理数据库连接。
Because of the advantages of connection pooling, using data source objects is the preferred method of handling database connections in Web applications.
该工具将提供一种简单的方法来创建和公开所选数据库对象的Web服务操作。
The tooling provides an easy way to create and expose Web service operations for the selected database objects.
Discussion数据库web服务提供的列表方法返回数据传输对象数组。
The list methods provided by the Discussion database Web services return arrays of data transfer objects.
我的工作就是显式地从数据库激活那些对象,在ObjectContainer使用activate方法。
It would then be my job to explicitly activate those objects from the database using the activate method on the ObjectContainer.
db2types类型还提供了将DB 2数据库列值表示为一个个可以为空的对象的方法。
The DB2Types classes also provide a means to represent DB2 database column values as individual nullable objects.
通过调用DatabaseMetaData对象中的适当方法在JDBC中访问数据库元数据,见清单3。
You access database metadata in JDBC by calling the appropriate method from the DatabaseMetaData object, as shown in Listing 3.
IfxCommand对象有一系列的Execute方法,以便对数据库执行命令。
The IfxCommand object has a series of Execute methods to execute the command against the database.
请注意,在方法的主体中,只用一行代码获取完整的Player对象,然后它可使用JPA将新的 Player保存到数据库。
Notice that in the body of the method, it only takes one line of code to get a full Player object that can then be used to save the new Player to the database using JPA.
使用自下而上的开发方法,您需要创建一个或多个数据库对象并且公开为Web服务操作。
With the bottom-up development approach, you start with one or more database objects to create and expose as Web service operations.
应用程序开发领域中的代码先行(CodeFirst)方法指的是先在代码中创建对象模型,然后按照模型生成数据库结构。
The Code First approach to application development means that the object model is created in code, and then the database structure is generated from that model.
清单3中的代码初始化了mdb2_schema类的一个实例,方法是给它传入一个表示目标(PostgreSQL)数据库的MDB2对象。
The code in Listing 3 initializes an instance of the MDB2_Schema class, by passing it an MDB2 object representing the target (PostgreSQL) database.
数据库对象和编程方法。
This tutorial introduces different types of database objects and programming methods. In this tutorial, learn about.
Pixie提供了略微不同的方法,它不要求从类到数据库的模式或映射—它只存储对象。
Pixie offers a slightly different approach in the sense that it doesn't require a schema or map from the class to the database — it just stores objects.
因为将访问后端lotusNotes对象(如数据库、文档和视图),并且调用ui线程,所以将在该方法中产生新线程。
Because we access backend Lotus Notes objects like databases, documents, and views, and because you call on the UI thread, you spawn a new thread in this method.
当Pixie从数据库访存Memento:Set:object类的对象时,它将调用该对象的px _ thaw方法。
When Pixie fetches an object of the Memento: : Set: : object class from the database, it will call the px_thaw method on it.
如果错误是由于调用数据库对象而产生的,那么可以在那个数据库对象上调用上述两个方法。
If the error resulted from a call on the database object, you would invoke those methods on the database object instead.
在这里,我们可以模拟数据库连接对象的查询方法,这样我们就只需要返回结果,而不需要真正地去查询数据库。
In this case, we would mock the query method of the database connection object so that we could just return back the results instead of calling out to the database for them.
“自下而上”方法假设已经有数据库表模式,而需要根据表模式开发一个对象层和对象关系映射。
The “bottom up" approach assumes you already have database table schema and need to develop an object layer and object relational mapping from the table schema.
应用推荐