代码改变世界

Asp.net MVC获取访问系统的客户端计算机的主机名和IP地址

2016-10-21 11:27 by 追忆似水流年, 17979 阅读, 1 推荐, 收藏, 编辑
摘要:在本机进行程序代码调试测试,其中字符串ip会显示为::1,是IPv6的IP地址格式,相当于127.0.0.1。最终处理成IPv4的显示地址。 上述方法,代码调试没有问题,但是放在服务器上后,客户端访问就出问题了,有部分电脑能获取主机名,但是ipv4显示为空,另外一部分 Dns.GetHostEntr 阅读全文

使用EasyUI,关于日期格式的文本框按照正常方式获取不到值的问题

2016-07-25 17:19 by 追忆似水流年, 2806 阅读, 2 推荐, 收藏, 编辑
摘要:这是个小菜在实际工作中遇到的问题,相信很多EasyUI新手很可能也遇到这样的问题,因此小菜觉得有必要拿出来分享一下。 这个问题要从EasyUI的datebox组件说起,小菜用这个组件的时候,发现用$("#id").val()这种形式,居然拿不到文本框的值! 经过度娘的帮助,发现可以用$("#id") 阅读全文

Entity Framework 6.0 Tutorials(11):Download Sample Project

2016-07-07 11:54 by 追忆似水流年, 350 阅读, 0 推荐, 收藏, 编辑
摘要:Download Sample Project: Download a sample project for Entity Framework 6 Database-First model below. Download a sample project for Entity Framework 6 阅读全文

Entity Framework 6.0 Tutorials(10):Index Attribute

2016-07-07 11:53 by 追忆似水流年, 246 阅读, 0 推荐, 收藏, 编辑
摘要:Index Attribute: Entity Framework 6 provides Index attribute to create Index on a particular column in the database as shown below: By default, Index 阅读全文

Entity Framework 6.0 Tutorials(9):Stored Procedure Mapping

2016-07-07 11:52 by 追忆似水流年, 355 阅读, 0 推荐, 收藏, 编辑
摘要:Code First - Insert, Update, Delete Stored Procedure Mapping: Entity Framework 6 Code-First provides the ability to create and use a stored procedure 阅读全文

Entity Framework 6.0 Tutorials(8):Custom Code-First Conventions

2016-07-07 11:50 by 追忆似水流年, 331 阅读, 0 推荐, 收藏, 编辑
摘要:Custom Code-First Conventions: Code-First has a set of default behaviors for the models that are referred to as conventions. EF 6 provides the ability 阅读全文

Entity Framework 6.0 Tutorials(7):DbSet.AddRange & DbSet.RemoveRange

2016-07-07 11:48 by 追忆似水流年, 767 阅读, 0 推荐, 收藏, 编辑
摘要:DbSet.AddRange & DbSet.RemoveRange: DbSet in EF 6 has introduced new methods AddRange & RemoveRange. DbSet.AddRange adds collection(IEnumerable) of en 阅读全文

Entity Framework 6.0 Tutorials(6):Transaction support

2016-07-07 11:47 by 追忆似水流年, 246 阅读, 0 推荐, 收藏, 编辑
摘要:Transaction support: Entity Framework by default wraps Insert, Update or Delete operation in a transaction, whenever you execute SaveChanges(). EF sta 阅读全文

Entity Framework 6.0 Tutorials(5):Command Interception

2016-07-07 11:46 by 追忆似水流年, 225 阅读, 0 推荐, 收藏, 编辑
摘要:Interception: Here, you will learn how to intercept EF when it executes database commands. EF 6 provides the ability to intercept the context using ID 阅读全文

Entity Framework 6.0 Tutorials(4):Database Command Logging

2016-07-07 11:44 by 追忆似水流年, 300 阅读, 0 推荐, 收藏, 编辑
摘要:Database Command Logging: In this section, you will learn how to log commands & queries sent to the database by Entity Framework. Prior to EF 6, we us 阅读全文
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 41 下一页