Rising

自我学习记录,方便使用时查找。

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2010年1月31日

摘要: EntitySpaces2009的开发文档地址,开发文档做得还是很不错的,主要的和关键的问题都在其中说明了,比示例做得好。 http://developer.entityspaces.net/documentation/Default.aspx 阅读全文
posted @ 2010-01-31 09:50 Rising 阅读(318) 评论(0) 推荐(0)

摘要: EntitySpaces2009中的关系使用起来还是很方便的,其中包括四种类型:Zero To Many, One To One, Many To One, Many To Many。 使用时可以针对不同的关系通过对应的代码模式完成。 阅读全文
posted @ 2010-01-31 09:48 Rising 阅读(384) 评论(0) 推荐(0)

摘要: EntitySpaces2009支持事件。 Transactions You do not need to wrap saves on a single collection in a transaction. EntitySpaces does this for you, even if you have multiple inserts, updates, and deletes. Use transactions if you are saving two or more objects that need to rollback as a set in the event of a failure. EntitySpaces has two transaction models. esTransactionScope works with all supported databases. Set providerClass="DataProvider" in your app.config. TransactionScope uses the new .NET 2.0 阅读全文
posted @ 2010-01-31 09:33 Rising 阅读(263) 评论(0) 推荐(0)

摘要: 因为使用access时,access文件地址不能固定,所以必须写成动态变化的,那么就不能通过配置文件实现,同时,连接参数也和其他类型数据库不一样,使用时注意以下方法配置连接参数: 方法一: conn = New esConnectionElement() conn.Name = AccessConnectionName conn.ProviderMetadataKey = "esDefault" conn.SqlAccessType = esSqlAccessType.DynamicSQL conn.Provider = "EntitySpaces.MSAccessProvider" conn.ProviderClass = "DataProvider" Dim sourceAccessDatabase As String sourceAccessDatabase = Path.Combine(mOperatingDirectory, "db.mdb") Dim userInfo As String userInfo = "User Id=user 阅读全文
posted @ 2010-01-31 09:22 Rising 阅读(328) 评论(0) 推荐(0)