码迷,mamicode.com
首页 >  
搜索关键字:entity resolution an    ( 5434个结果
SQL Server 查询锁表和接锁表
SQL Server 查询锁表 select request_session_id spid,OBJECT_NAME(resource_associated_entity_id) as tableName ,* from sys.dm_tran_locks where resource_type='...
分类:数据库   时间:2015-01-09 22:10:09    阅读次数:236
在Linq to sql 和 Entity framework 中使用lambda表达式实现left join
我们知道lambda表达式在Linq to sql 和 Entity framework 中使用join函数可以实现innerjoin,那么怎么才能在lambda表达式中实现left join呢?秘诀就是在join后面加上一个函数DefaultIfEmpty函数,实际上这个函数在linq中貌似也只有...
分类:数据库   时间:2015-01-09 20:55:26    阅读次数:197
MVC3----数据注解与验证(1)
=======================验证注解的使用需要引用名称空间:usingSystem.ComponentModel.DataAnnotations;--------------Required(不允许为空)案例:--模型代码:usingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Web; usingSystem.Data.Entity..
分类:Web程序   时间:2015-01-09 19:34:39    阅读次数:158
ALIAS_TO_ENTITY_MAP 封装成对象
ALIAS_TO_ENTITY_MAP 封装成对象 protected List executeSQLMapQuery(String sql, Object param, int start, int limit) { Query query = null; query = this.get...
分类:其他好文   时间:2015-01-09 19:01:18    阅读次数:233
【缓存】EF4ProviderWrappers
在Kooboo中使用了Entity Framework作为持久化框架,但由于EF1.0并没有提供完整缓存解决方案,一直以来都在为数据缓存而烦脑,在没有找到合适解决方案的情况下,采取了临时的解决办法:直接缓存实体。但是由于Entity实体都是带状态的,并且都与ObjectContext有间接的反向引用...
分类:移动开发   时间:2015-01-09 01:31:44    阅读次数:291
Entity Framework 处理MySQL,Oracle 并发问题
前提, 使用的 Entity Framework Power Tools 来生成Code First 模式 问题, SQL Server 使用 TS 字段来处理并发控制,  MySQL 如何处理 ? Oracle 如何处理? 思路:使用EF 的并发控制标识,加上数据库自动更新TS字段 1. 数据库自动更新TS, MySQL 可以设置TS列为 Timestamp 类型,加上默认...
分类:数据库   时间:2015-01-08 15:27:05    阅读次数:414
Code First 解除数据库与Entity的绑定关联
Code First
分类:数据库   时间:2015-01-08 12:51:06    阅读次数:153
jpa概述
1.1.  JPA 是什么 JavaPersistence API,用于对象持久化的API,是Java EE 5.0 平台标准的 ORM 规范,使得应用程序以统一的方式访问持久层。 JPA 是EJB3 EntityBean,是一套从EJB3.0核心标准中分离出来的独立的标准文档,J2EE 4规范中最为人所熟悉的用来处理数据持久的Entity Bean,在Java EE5中被推到重来...
分类:其他好文   时间:2015-01-07 23:38:08    阅读次数:320
(android-001)非基本类型实现Parcelable使用
//实体bean package?org.mo.common.util.entity; import?java.util.Date; import?android.os.Parcel; import?android.os.Parcelable; /** ?*? ?*?@author?moziqi ?*? ?*/ public?class?BeanDem...
分类:移动开发   时间:2015-01-07 22:14:34    阅读次数:223
org.hibernate.MappingException: Unknown entity:
严重: Exception occurred during processing request: Unknown entity: com.hf.gfr.dao.impl.GfTeamPositionDaoImpl org.hibernate.MappingException: Unknown entity: com.hf.gfr.dao.impl.GfTeamPositionDaoImpl a...
分类:移动开发   时间:2015-01-07 21:00:12    阅读次数:357
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!