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。
And, while it's not quite as easy, you can also create an EDMX from Code First classes.
然后,而不是那么简单相当,则您也可以从程序码第一个类别建立EDMX。
By writing the code first, you embed your preconceptions of how the code will work, then test it.
通过先编写代码,您在代码中嵌入了有关代码如何工作的想法,然后测试这些代码。
The code first requires in the configuration file (config.php), then USES the constants directly.
该代码首先包含配置文件(config . php),接着就可以直接使用这些常量了。
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代码+流利的关系?
How to avoid migrations in model first database with Entity Framework 5 and code first entities?
如何避免迁移模型首先数据库实体框架5和代码第一实体吗?
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.
关于英孚,我建议映射域的实体直接使用第一种方法的代码。
With Code First, rather than creating an EDM, you create your domain classes as you would for any other .
与程式码第一次,而非建立EDM 中,您建立您网域类别一样,任何其他。
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.
为确保这个脚本不能用于访问数据库中的任何表,代码首先检查被请求的表名。
NET Entity Data Model so that I can use Stored Procedures as reverse engineer code first didn't provide the use of sprocs.
NET实体数据模型,可以使用存储过程作为逆向工程的代码没有提供存储过程的使用。
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中的所有数据。
Because the EF is able to work with POCO entities, classes you create in the Code First scenario can also be managed by the EF context.
因为EF是能够与POCO实体的工作,也可以由EF上下文管理在代码第一次的情况下创建的类。
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.
您可以从随后的注释部分中看到,代码首先将开发五种样例音调并一起比较以形成计算偏差的依据。
应用推荐