摘要:
Danny_Su的devexpress 9.3.3的注册插件在vs2010RC中无法使用的解决办法 学习c#终于算告与段落,觉得有了不少的提升,看到很多人在用Danny_Su的devexpress的注册插件,反应都说不错,对于我们这些穷困潦倒的学习者来说不能不说时间好事,当然还是支持大家购买正版的了,刚巧试用了VS2010,最新的9.3.3注册插件不能使用,闲来无事,对比了vs2008和vs201... 阅读全文
摘要:
EntitySpaces2009的开发文档地址,开发文档做得还是很不错的,主要的和关键的问题都在其中说明了,比示例做得好。
http://developer.entityspaces.net/documentation/Default.aspx
阅读全文
摘要:
EntitySpaces2009中的关系使用起来还是很方便的,其中包括四种类型:Zero To Many, One To One, Many To One, Many To Many。
使用时可以针对不同的关系通过对应的代码模式完成。
阅读全文
摘要:
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 阅读全文
摘要:
因为使用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 阅读全文