How to have default values for an attribute in Code First?
如何在代码中有一个属性的默认值吗?
This code first opens a file, then locks it using file_lock.
代码首先打开一个文件,然后使用file_lock锁定它。
This code first creates a new InitialContext using the default constructor.
上面的代码首先使用缺省的构造器创建一个新InitialContext。
EF 4.1 added support for the DbContext API and Code First functionality.
EF 4.1添加了DbContextAPI和代码先行功能的支持。
What's the number of the party you're calling? Please give the area code first.
请问对方号码是什么?请先告诉我区域号码。
The code first adds the role if it doesn't yet exist, then adds the user to the role.
首先,如果这个角色不存在的话,代码会自动将其添加,然后将用户添加到此角色。
The Code First workflow begins with classes that describe your conceptual model.
程序码第一个工作流程的开头说明您的概念性模型的类别。
I'll start in with the server code first, because the client code will be more complex.
我先从服务器代码开始,因为客户机代码更复杂。
On the results page, the code first checks if there is any link with the text HttpUnit Home.
在结果页面上,代码首先检查是否有一个链接的文本是HttpUnit Home。
By writing the code first, you embed your preconceptions of how the code will work, then test it.
通过先编写代码,您在代码中嵌入了有关代码如何工作的想法,然后测试这些代码。
How to properly define DbContext derived class when using ef Code First with DDD methodology?
如何正确使用EF代码首先DDD方法定义派生类来?
Multiplicity constraint violations with optional-required EF Code First + Fluent relationship?
多重违反约束与可选的所需的EF代码+流利的关系?
The following sample code first checks if an entry is made to the log file after the test case completes.
接下来的范例代码首先会检查测试用例完成以后日志文件是否做了一个条目。
Regarding EF, I would recommend mapping your domain entities directly using the code first approach.
关于英孚,我建议映射域的实体直接使用第一种方法的代码。
The following sample code first opens the Problems view, then checks whether the Problems view contains an entry.
接下来的范例代码首先打开了问题视图,然后检查问题视图是否包含有一个条目。
To ensure that the script can't be used to access any table in the database, the code first checks the table name requested.
为确保这个脚本不能用于访问数据库中的任何表,代码首先检查被请求的表名。
The code first instantiates a new history stack object and loads any existing values that may have been saved to the browser's cookies.
这段代码首先实例化一个新的历史堆栈对象,并载入可能已经保存到浏览器cookie中的所有数据。
Stored procedures are similar to parameterized queries in that they require you to define the SQL code first, then pass in the parameters later.
存储过程类似于参数化查询,也要求您首先定义SQL代码,然后再传入参数。
The performance test code first reads the documents to be used in the test into memory, then runs through a sequence of operations on the documents.
性能测试代码首先将测试中使用到的文档读入到内存中,然后对文档进行一系列的操作。
The code First programming model is a way of creating a model by writing the code for the classes whose associated entities are contained by the model.
Code First编程模型通过编写类代码来创建模型,与该类关联的实体则包含在模型当中。
I still want to have a test so I can have the confidence that comes from a full regression suite, but I have to write some code first, then write a test.
我仍然希望进行测试,这样我可以从完整的回归套件中获得信心,但我必须先编写一些代码,然后编写测试。
However, Code First does have support to detect model and database differences, as well as seed the database with data using database initializers.
不过,第一个程序码不会有支援,以侦测到模型与资料库的差异,以及使用资料库初始设定式的资料植入资料库。
There is indeed a better solution, but let's just use the code first, which works fine in the WebSphere Test Environment of Application Developer V5.1.2.
的确存在一个更好的解决方案,但是让我们首先使用此代码,它在Application Developer V5.1.2的WebSphereTestEnvironment中工作得非常好。
As you can see from the following comments section, the code first develops five samples of tones to compare together to form a basis for computing deviation.
您可以从随后的注释部分中看到,代码首先将开发五种样例音调并一起比较以形成计算偏差的依据。
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.
应用程序开发领域中的代码先行(Code First)方法指的是先在代码中创建对象模型,然后按照模型生成数据库结构。
Since this framework supports the code first approach, with the help of a few lines of code, you can get a client and a service up and running without much effort.
由于此框架支持代码优先的方法,因此只需少许代码,您就可以轻而易举地让客户端和服务正常运行。
In Listing 2, the code first includes the necessary class file for the MDB2_Schema package, and then initializes the MDB2 abstraction layer by calling its static factory method.
在清单2中,代码首先包含了MDB2_Schema包所需的类文件,然后通过调用其静态方法factory以初始化mdb2抽象层。
Part 1 starts simply, explaining the basic concepts behind web services and showing you how to develop web service with Axis2 using Different Approach (Code First and Contract First).
第1部分从简单的内容开始,先解释了Web服务背后的基本概念,并展示了如何使用Axis2运用不同的方法(代码优先和契约优先)来开发Web服务。
After the fall of Rome, the first European society to regulate behaviour in private life in accordance with a complicated code of etiquette was twelfth-century Provence, in France.
罗马帝国灭亡后,在欧洲,第一个按照复杂的礼节规范私人生活行为的社会,是12世纪法国的普罗旺斯。
On May 28, the National People's Congress agreed China's first-ever Civil Code.
5月28日,全国人民代表大会通过了中国第一部民法典。
应用推荐