江南白衣

陌上發花,可以緩緩醉矣
忍把浮名,換了淺斟低唱
我不是聖賢豪士,我衹有一腔熱血
posts - 107, comments - 341, trackbacks - 10, articles - 0
  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理

最新评论

共7页: 1 2 3 4 5 6 7 下一页 
能否说一下WCF传输IPrincipal,IIdentity用在什么地方

另外,你的博客在ff3下有严重问题,连接不能点,评论不能回,估计和那个蝴蝶flash有关吧,建议搂住看一下,没办法跑到ie7下回的。
楼主有没有已经Port完成的版本?
re: 祝我生日快乐 饼饼 2008-07-18 19:56  
生日快乐
re: 带套的日子 Jackei 2008-07-13 20:39  
呵呵,支持!

白衣兄还在 YX 吗?
re: 带套的日子 DreamsHunter 2008-07-12 21:21  
顶!!
re: Why use the Entity Framework?(转) 江南白衣 2008-07-10 21:56  
@王弈博
我的翻译水平真的很水,SO...
将就看一下吧:)
re: 千年一回 曾平平 2008-07-10 08:27  
楼主是7.7出生的啊!呵呵!
re: 一块钱 曾平平 2008-07-10 08:26  
嗯!有爱心的孩子!
re: 贱货 黑人 家丑 曾平平 2008-07-10 08:24  
你很爱国,真的!
我也讨厌小日本!
深圳真的那么乱?
现在真见识到了!
当初的选择是对的
还好没去那边工作
re: 祝我生日快乐 曾平平 2008-07-10 08:12  
这文字看上去好眼熟啊!是一首歌吧?
re: Why use the Entity Framework?(转) 王弈博 2008-07-09 22:37  
LZ能否简单翻译一下?有点难懂
re: 贱货 黑人 家丑 卡人 2008-07-09 20:37  
楼主..内女的说话大声..说咱国家不好..是她的错....我们是不应该说我们的国家不好..但也应该告诉外国朋友应该注意安全..只是内女的方法用错了而已...
ER...内女的长得胖并不是她的错吧.....我也胖.....而且非洲人都喜欢胖的...
我老公也是黑人......
我同意你的一些观点....不应该说自己国家不好...
不应该让老外在中国嚣张...我有时候就很TMD受不了一些女的...靠....
简直把自己当外国人了...靠.....郁闷...气愤
re: ActiveWriter 崩溃 2008-06-10 11:26  
ActiveWriter默认安装到了
X:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ItemTemplates\CSharp\1033
目录,这是因为他没考虑中文是2052目录,将1033目下的东东移到2052目录下就好了
re: WCF Testing Tool(转) Artech 2008-06-04 13:22  
很丰富,很有价值,谢谢!
re: 国殇 溺水三千 2008-05-25 11:00  
国殇 原为 为国战死者

re: 卿本佳人,耐何做賊 江南白衣 2008-05-20 23:11  
@hua~
阁下有意见?不爽?
re: 国殇 国殇 2008-05-20 07:25  
坚强通行
re: 国殇 江南白衣 2008-05-20 01:04  
@cindy6
回去多读读书
re: 国殇 cindy6 2008-05-19 15:55  
国殇是国家阵亡将士的意思
re: 国殇 yongfa365.com 2008-05-19 10:57  
re: 卿本佳人,耐何做賊 hua~ 2008-05-19 10:52  
请别在搞这些这样无聊的文章,好不?
re: 国殇 floodpeak 2008-05-19 10:38  
更爱祖国了
re: 国殇 wwhan 2008-05-19 10:13  
|||
re: 国殇 Csea Xia 2008-05-19 10:09  
祈福
re: 国殇 仁面寿星 2008-05-19 09:59  
祝福
re: 国殇 Dr.Edison 2008-05-19 09:57  
地下亡魂 安息吧!
re: 国殇 白发先生 2008-05-19 09:24  
要发展世界地震事业啊!
re: 国殇 狼Robot 2008-05-19 09:07  
祈福
re: 国殇 刘福 2008-05-19 09:04  
祈福
re: 国殇 小哈 2008-05-19 08:19  
re: 国殇 飞无痕落无声 2008-05-19 08:13  
祈福
re: 国殇 专研.NET 2008-05-19 08:06  
祈福
re: 国殇 生鱼片 2008-05-19 07:00  
祈福
re: 国殇 横刀天笑 2008-05-18 23:33  
祈福
re: 国殇 WatSoft 2008-05-18 22:54  
/祈福/
re: 国殇 leening 2008-05-18 22:02  
--引用--------------------------------------------------
孤剑: 逝者长存。
--------------------------------------------------------
re: 国殇 孤剑 2008-05-18 21:26  
逝者长存。
re: 国殇 w3c 2008-05-18 21:17  
这次实在是太令人心痛了,希望灾区同胞坚强!
re: 国殇 落雨凌风 2008-05-18 21:17  
愿逝者安息
re: ActiveWriter 江南白衣 2008-05-02 14:32  
@zhangh123
不好意思,我已经好久没用AR了,SO...,不过你可以把源码下载回来,把里面的HardCode修改为中文
re: ActiveWriter zhangh123 2008-04-23 10:02  
楼主,改好了没有啊?
楼主,改好了没有啊?
2008-04-20 15:01 by 程程 [未注册用户]
辛苦了,谢谢
=====================
不客气:)
辛苦了,谢谢
re: 和谐的wordfilter.txt just 2008-04-13 18:11  
不晓得迅雷有没有这样的东东
re: 和谐的wordfilter.txt just 2008-04-13 18:10  
用了个吧月代理才发现那文件里那么多不和谐的东西,想来是罪证吧,切了好
re: 一失手成千古恨 - 江南白衣 - 博客园 蓝奇高级验证码识别引擎QQ:631753663 2008-04-08 23:48  
出售蓝奇高级验证码识别引擎,可准确识别新浪动网淘宝CSDN等多种复杂验证码。

输出为一个标准DLL,可供VB,VC,Delphi,C#.NET,VB.NET,模拟精灵,按键精灵等多平台调用,调用方法简单,几行代码即可完成。独具特色的边缘检测字符分离、旋转倾斜纠正和通用字符匹配算法(无论字体和大小), 使得该引擎对于像新浪、动网、淘宝、CSDN等多种验证码均有不错的识别率,是一款效果较为理想的验证码识别引擎。附详细的调用实例和代码注释等相关技术文档。

官方网站 - http://***/yzm_advocr
识别效果怎么样一试就知道 - DEMO下载 http://***/yzm_advocr/advocr.rar
re: Sync Services for Windows Mobile Realsed(CTP) 沙漠孤鹰@KM 2008-03-20 22:23  
呵呵,曾经看过你的blog,想不到跑到一个QQ群里了!
Thank you for your help. Actually, I try to fit Linq to a very small project that is only one form with only one relational table to be connected via HTTP. It is a good chance to taste Linq. heh.
The source code becomes like this:
private EntityBindingList<TheEntity> listOfEntities;
private void InitializeEntities()
{
ServiceReferenceLinq.ServiceLinqClient svc = new ServiceLinqClient();
// TheBindingSource.DataSource = new EntityBindingList<PurchPOMst>(svc.GetPurchPoMst());


listOfEntities = new EntityBindingList<TheEntity>(svc.GetPurchPoMst());
TheBindingSource.DataSource = listOfEntities;
svc.Close();
}
I can fetch the entities but when I try to add new entity using the BindnigSource. it is giving me a “collection is read only”.
@Tariq Salah
hi,Tarip,this post is reprinted from http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2007/10/09/9848.aspx

"原文:http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2007/10/09/9848.aspx"

"原文" == original post:)

"LINQ to SQL and WCF - Sharing types, subverting the DataContext on the client side(转)"

"转" == Reprint:)
for your question:

public class EntityBindingList<TEntity> : BindingList<TEntity> where TEntity : class
{

private ClientSideContext context;
public ClientSideContext Context
{
get { return context; }
}

public EntityBindingList(IList<TEntity> entities)
: base(entities)
{
context = new ClientSideContext();
context.AttachAll<TEntity>(entities);
}

protected override void InsertItem(int index, TEntity item)
{
base.InsertItem(index, item);
Context.Add<TEntity>(item);
}

protected override void RemoveItem(int index)
{
Context.Remove<TEntity>(this[index]);
base.RemoveItem(index);
}
}

public class ClientSideContext
{
private DataContext ctx;

public class StateEntries<T>
{
public List<T> Originals { get; set; }
public List<T> Current { get; set; }
}

public ClientSideContext()
{
ctx = new DataContext("", new AttributeMappingSource());
ctx.DeferredLoadingEnabled = false;
}

public void Attach<T>(T t) where T : class
{
ctx.GetTable<T>().Attach(t);
}

public void AttachAll<T>(IEnumerable<T> entities) where T : class
{
ctx.GetTable<T>().AttachAll(entities);
}

public void Remove<T>(T t) where T : class
{
ctx.GetTable<T>().DeleteOnSubmit(t);
}

public void Add<T>(T t) where T : class
{
ctx.GetTable<T>().InsertOnSubmit(t);
}

public List<T> GetInserted<T>() where T : class
{
return (GetChangeEntries<T>(ch => ch.Inserts));
}

public StateEntries<T> GetDeleted<T>() where T : class
{
return (GetStateEntries<T>(ch => ch.Deletes));
}

private StateEntries<T> GetStateEntries<T>(
Func<ChangeSet, IEnumerable<Object>> entry) where T : class
{
List<T> current = GetChangeEntries<T>(entry);
List<T> originals = GetOriginals<T>(current);

return (new StateEntries<T>()
{
Originals = originals,
Current = current
});
}

public StateEntries<T> GetModified<T>() where T : class
{
return (GetStateEntries<T>(ch => ch.Updates));
}

List<T> GetChangeEntries<T>(
Func<ChangeSet, IEnumerable<Object>> selectMember) where T : class
{
var query = from o in selectMember(ctx.GetChangeSet())
where ((o as T) != null)
select (T)o;

return (new List<T>(query));
}

List<T> GetOriginals<T>(List<T> current) where T : class
{
List<T> originals = new List<T>(
from c in current
select ctx.GetTable<T>().GetOriginalEntityState(c));

return (originals);
}

public void Dispose()
{
ctx.Dispose();
}
}
re: 美人依旧 江南白衣 2008-03-11 23:36  
--引用--------------------------------------------------
Howard Queen: 楼主不老实,欺骗网友感情。欺骗依旧
--------------------------------------------------------
那天忙里偷闲的时候突然想起,就先打了个题目,最近忙得不可开交.有空再补上:)

至于"欺骗依旧",不知阁下何出此言?

BTW:我没放首页,没影响到大伙吧?:)
共7页: 1 2 3 4 5 6 7 下一页