回到目录

在项目开发过程中,出现了一个问题,就是新添加一个非空字段后,原来的程序逻辑需要被重新修改,即将原来的字段添加到程序里,这种作法是非常不提倡的,所以,我通过T4模版将原来的实体类小作修改,解决了这个问题,即,在实体里为非空属性添加默认值,事实上,也就那种几种,如string默认为string.Empty,int,short,long默认都是0,而datetime默认为当前日期,这些我们可以在T4模块中完成

看一下代码

    public <#=code.Escape(entity)#>()
{
<#
foreach (var edmProperty in propertiesWithDefaultValues)
{
#>
this.<#=code.Escape(edmProperty)#> = <#=typeMapper.CreateLiteral(edmProperty.DefaultValue)#>;
<#
} foreach (var navigationProperty in collectionNavigationProperties)
{
#>
this.<#=code.Escape(navigationProperty)#> = new HashSet<<#=typeMapper.GetTypeName(navigationProperty.ToEndMember.GetEntityType())#>>();
<#
} foreach (var complexProperty in complexProperties)
{
#>
this.<#=code.Escape(complexProperty)#> = new <#=typeMapper.GetTypeName(complexProperty.TypeUsage)#>();
<#
}
#>
}

保存模版后,看一下生成的类截图

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXAAAAECCAIAAABokRuiAAAY+0lEQVR4nO2dTW7kuBmGdYmcwlveYK7gG3DfB/AdtPCil155kaWBZGRgAKO3hvcxkFYSJ3CCzEwMdJzuQYIg08Ms9MO/j5KqxGKVq54HBlymKZKlKr71fSzxVWUAADJR7XsAAHA8ICgAkA0EBQCygaAAQDYQFADIBoICANlAUAAgGwjKMdM0TfIvgB2QR1B0ZYT3amOqylTRv9raVJWp2417aXSlm+Sfk3WHsrHQfVyIRlcdav6593VXjbDRldKN7aqplSr9nOHU2KWgzP1rU3IISlfa1mrtdN2ccUiNXioqK0bYaKGPtkZSYKdMCYpWpqn7KGN8b1qBaEylbWEd1QzrG2OMqZUctozlqk6OJxKUYcZ0+uB9pDe60nVf3Fdra6W0Vroxba10Xau+8hg5eIeruvEPT9T0Sm3lxJCa4Z9So8FUjwRFaNMtdPUjqRyizgDkYlJQxundmEqZdigUBSWuaYL66cJGT+nISD8P+zkxz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s8P44BPGQW9oK4YVrjYpfstYoZZQy7fgg1aIoKE4EsTzsnxGU5IpvYgU3CFM+Ppxd353fPhvzfHH9cHE70aYwJH8JZpjS8tOUnpFYU1wqkoaU7H3Z4J3C16vrcKVpDxFKWwuLsrGg6MTybSUtyobxvDOV3OzX+/SNo4l4jcL701nVVLMLFnFN/6M/XmkdClNfUSUGn8puqqqqtBaDpnyLstILZ19f/4XrVltqFX5meMgRiv3sPb++kz6lJ9cLvTTKzpmnfq0xjHpseahHznf4L4/nQ1j04dZ+pEttOuMMYoSB4c/U0xQXLOKaToTiDD4eUuorqsTgU9nNzdnlzcVtGDRxYVspPJ1wV0QAchAuLS//pjwn7OUphb+ugp5AZoL1bPGb8t1DhAIA2fg/VaFhZiLIrLkAAAAASUVORK5CYII=" alt="" />

回到目录

EF架构~在T4模版中为所有属性加默认值的更多相关文章

  1. EF架构~在T4模版中自定义属性的getter和setter

    回到目录 T4模版为我们在ORM操作上提供了便捷,它很方便的可以对实体进行全局性的修改,之前我介绍过通过T4来为属性加默认性,而今天我主要告诉大家如何使用T4模版将getter,setter块改为自己 ...

  2. 分别在javascript和JSP中动态设置下拉列表默认值

    一.JavaScript中动态设置select标签中<option>选项的默认值: 比如,要完成下边这个下拉列表的动态显示,并且当进行前后翻页时,下拉列表中的值自动更新为当前页码: 图1 ...

  3. EF连接Mysql 表'TableDetails'中的列'IsPrimaryKey'的值为DBNull

    无法生成模型,因为存在以下异常:'System.Data.StrongTypingException:表'TableDetails'中的列'IsPrimaryKey'的值为DBNull.---> ...

  4. php与js中函数参数的默认值设置

    php函数参数默认值设置: <?phpfunction test($val=3){   echo $val."<br/>";}test(11);test();?& ...

  5. MVC4中给TextBoxFor设置默认值和属性

    例如:(特别注意在设置初始值的时候 Value 中的V要大写) @Html.TextBoxFor(model => model.CustomerCode, new { Value="  ...

  6. Django的model中日期字段设置默认值的问题

    之前写过这样一个model: class MonthlyFeeMember(models.Model): worker = models.ForeignKey(Student, verbose_nam ...

  7. 关于Java读取mysql中date类型字段默认值'0000-00-00'的问题

    今天在做项目过程中,查询一个表中数据时总碰到这个问题:      java.sql.SQLException:Value '0000-00-00' can not be represented as ...

  8. ADO.NET实体数据模型中关于数据库字段默认值的处理

    无论是Visual Studio 2010或者2013内置的ADO.NET实体数据模型都有一个小问题:数据库中有些字段已设置了默认值,但ADO.NET实体数据模型工具并不会自动进行设置. 这时需要手工 ...

  9. IE 中的 button type默认值问题

    今天遇到一个问题. 将项目页面的渲染模式从 IE7 改为 IE10 后(<meta http-equiv="X-UA-Compatible" content="IE ...

随机推荐

  1. Linux 忘记root登录密码解决方法

    很多朋友经常会忘记Linux系统的root密码,linux系统忘记root密码的情况该怎么办呢?重新安装系统吗?当然不用!进入单用户模式更改一下root密码即可. 步骤如下: 重启linux系统 3  ...

  2. IB交换机配置命令总结

    串口通过远程CRT登录,波特率9600用户名和密码都是adminDo you want to use the wizard for initial configuration?选择no打开ip rou ...

  3. iscroll5 上拉,下拉 加载数据

    我这里的思路是上拉时候只是加载第一页的内容,可根据实际情况修改其中的代码.请勿照搬.样式没怎么调,可以加载gif动画.1.没有数据时候,下拉可以加载数据.2.没有数据时候,点击也可以加载数据.3.其余 ...

  4. 【收藏】Firebird知识

    本代码在:WinXp Pack 3 + Delphi2009 updata1 火鸟Firebird2.5.0.23247下测试通过.使用了Data Access面板的组件用SQL进行操作作者:LAH ...

  5. WebBench源码分析与心得

    源码:https://github.com/EZLippi/WebBench   关键全局变量: speed 成功次数 failed 失败次数 bytes 接收字节数 benchtime 执行时长(秒 ...

  6. 道路翻新 (Revamping Trails, USACO 2009 Feb)

    题意:给定m<=50000的1-n有联通的图,求最多可以使K<=20条边变为0的情况下的最短路是多少.. 思路:简单的分层图最短路,对于每个点拆成K个点.. 然后求一边最短路.. code ...

  7. PHP 计算每个月的最后一天

    主要用到了 PHP 的 date() 函数和 mktime() 函数. date() 函数的 format 参数用到了选项 t,它表示某个月总共有多少天,数值范围为28-31. mktime() 函数 ...

  8. MySql与Oracle的区别总结

    在平时工作中使用这两个数据库的时候要多一些,这两数据库的使用方面存在的一些各自不同的地方,许多面试官也会问这两个的区别.所以,凭着自己的一些经验个感触,来说说这二者的区别. 使用的群众:MySql中小 ...

  9. [转载]并发编程之Operation Queue和GCD

    并发编程之Operation Queue http://www.cocoachina.com/applenews/devnews/2013/1210/7506.html 随着移动设备的更新换代,移动设 ...

  10. 欢迎访问我的最新个人技术博客http://zhangxuefei.top

    博客园已停止更新,欢迎访问我的最新个人技术博客http://zhangxuefei.top