The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 |
From: "寻路者" <181443...@qq.com>
Date: Sun, 10 Dec 2006 18:57:13 -0800
Local: Sun, Dec 10 2006 9:57 pm
Subject: 使用分布式系统时数据更新时无法正常运行
现在做的程序在本地数据库运行的时候能正常的更新和添加,布置上分布式系统时在更新和添加数据时,总是返回错误信息:MSDTC 事务的导入失败: Result Code = 0x8004d01f
You must Sign in before you can post messages.
You do not have the permission required to post.
|
 |
From: Teddy <shijie...@gmail.com>
Date: Mon, 11 Dec 2006 11:01:14 +0800
Local: Sun, Dec 10 2006 10:01 pm
Subject: Re: 使用分布式系统时数据更新时无法正常运行
请检查一下是不是每台部属的服务器上都开启了msdtc service。 On 12/11/06, 寻路者 <181443...@qq.com> wrote:
> 现在做的程序在本地数据库运行的时候能正常的更新和添加,布置上分布式系统时在更新和添加数据时,总是返回错误信息:MSDTC > 事务的导入失败: Result Code = 0x8004d01f
You must Sign in before you can post messages.
You do not have the permission required to post.
|
 |
From: "寻路者" <181443...@qq.com>
Date: Sun, 10 Dec 2006 21:59:16 -0800
Local: Mon, Dec 11 2006 12:59 am
Subject: Re: 使用分布式系统时数据更新时无法正常运行
已经都开启了.但是还是返回错误. 我现在把所有的更新和添加前面都加上事务处理可以正常了. 不过在添加时如果主键相同,添加不成功,但是程序执行的时候没有例外抛出,仍然返回TRUE.
You must Sign in before you can post messages.
You do not have the permission required to post.
|
 |
From: Teddy <shijie...@gmail.com>
Date: Mon, 11 Dec 2006 14:06:04 +0800
Local: Mon, Dec 11 2006 1:06 am
Subject: Re: 使用分布式系统时数据更新时无法正常运行
没有抛出异常的问题确认是一个bug,我会在下一版修复它。 On 12/11/06, 寻路者 <181443...@qq.com> wrote:
> 已经都开启了.但是还是返回错误. > 我现在把所有的更新和添加前面都加上事务处理可以正常了. > 不过在添加时如果主键相同,添加不成功,但是程序执行的时候没有例外抛出,仍然返回TRUE.
You must Sign in before you can post messages.
You do not have the permission required to post.
|
 |
From: "寻路者" <181443...@qq.com>
Date: Sun, 10 Dec 2006 22:10:45 -0800
Local: Mon, Dec 11 2006 1:10 am
Subject: Re: 使用分布式系统时数据更新时无法正常运行
You must Sign in before you can post messages.
You do not have the permission required to post.
|
 |
From: "寻路者" <181443...@qq.com>
Date: Sun, 10 Dec 2006 22:15:00 -0800
Subject: Re: 使用分布式系统时数据更新时无法正常运行
You must Sign in before you can post messages.
You do not have the permission required to post.
|
 |
From: Teddy <shijie...@gmail.com>
Date: Mon, 11 Dec 2006 14:18:29 +0800
Local: Mon, Dec 11 2006 1:18 am
Subject: Re: 使用分布式系统时数据更新时无法正常运行
由于这个bug现在没法判断,我会立即修复,下午就会发布修复版本。给你造成不便非常抱歉~~ On 12/11/06, 寻路者 <181443...@qq.com> wrote:
You must Sign in before you can post messages.
You do not have the permission required to post.
|
 |
From: Teddy <shijie...@gmail.com>
Date: Mon, 11 Dec 2006 14:47:17 +0800
Local: Mon, Dec 11 2006 1:47 am
Subject: Re: 使用分布式系统时数据更新时无法正常运行
You must Sign in before you can post messages.
You do not have the permission required to post.
|
 |
From: "寻路者" <181443...@qq.com>
Date: Sun, 10 Dec 2006 23:45:03 -0800
Local: Mon, Dec 11 2006 2:45 am
Subject: Re: 使用分布式系统时数据更新时无法正常运行
还有我在使用Gateway.Default.GetPageSelector<>时,如果我有100条数据.我想得到排序后,从第20条-第70条的数据怎么 得到? 用FindPage(pageNo)只能得到一页的.
You must Sign in before you can post messages.
You do not have the permission required to post.
|
 |
From: Teddy <shijie...@gmail.com>
Date: Mon, 11 Dec 2006 15:54:31 +0800
Local: Mon, Dec 11 2006 2:54 am
Subject: Re: 使用分布式系统时数据更新时无法正常运行
没有直接的方法,不过你可以组合几个方法来实现: 比如,如果排序字段值唯一,你可以找到第19个的排序字段,在查询第20个开始的前50条记录。 或者,你也可以先查询得到前19条记录的Id,存到一个数组ids,再查询gateway.GetPageSelector<Entity>((!Entity ._.ID.In(ids)), OrderByClip.Default, 50).GetPage(1) Teddy On 12/11/06, 寻路者 <181443...@qq.com> wrote:
> 还有我在使用Gateway.Default.GetPageSelector<>时,如果我有100条数据.我想得到排序后 > ,从第20条-第70条的数据怎么得到? > 用FindPage(pageNo)只能得到一页的.
You must Sign in before you can post messages.
You do not have the permission required to post.
|
 |
From: "寻路者" <181443...@qq.com>
Date: Mon, 11 Dec 2006 00:01:03 -0800
Local: Mon, Dec 11 2006 3:01 am
Subject: Re: 使用分布式系统时数据更新时无法正常运行
这些数据绑定到GridView后对数据进行删除时,会不会自动更新?
You must Sign in before you can post messages.
You do not have the permission required to post.
|
 |
From: Teddy <shijie...@gmail.com>
Date: Mon, 11 Dec 2006 16:04:14 +0800
Local: Mon, Dec 11 2006 3:04 am
Subject: Re: 使用分布式系统时数据更新时无法正常运行
不行。以Entity的形式邦定到GridView时,Entity都是无状态的,不能像邦定DataSet那样维持可更新的状态。 On 12/11/06, 寻路者 <181443...@qq.com> wrote:
> 这些数据绑定到GridView后对数据进行删除时,会不会自动更新?
You must Sign in before you can post messages.
You do not have the permission required to post.
|
 |
From: "锦瑟" <hgamez...@gmail.com>
Date: Wed, 13 Dec 2006 08:24:07 -0800
Local: Wed, Dec 13 2006 11:24 am
Subject: Re: 使用分布式系统时数据更新时无法正常运行
这个问题是不是由于transactionScope引起的?难道NBear的所有级联更新都用的是这个Scope,它是需要msdtc支持的,增加了很多系统 开销啊。
You must Sign in before you can post messages.
You do not have the permission required to post.
|
 |
From: Teddy <shijie...@gmail.com>
Date: Thu, 14 Dec 2006 09:18:48 +0800
Local: Wed, Dec 13 2006 8:18 pm
Subject: Re: 使用分布式系统时数据更新时无法正常运行
这个和TrsancationScope没关系,而是实体经过序列化会丢失数据库绑定信息的问题。 On 12/14/06, 锦瑟 <hgamez...@gmail.com> wrote:
> 这个问题是不是由于transactionScope引起的?难道NBear的所有级联更新都用的是这个Scope,它是需要msdtc支持的,增加了很多系统 开销啊。
You must Sign in before you can post messages.
You do not have the permission required to post.
|
|
|