Monday, 22 December 2008

VISUG Event : Entity Framework & WCF

Hello,

Kurt Claeys gave a presentation about using the Entity Framework (EF) in a distributed scenario (Service oriented with WCF, Tight coupled Client-server) for the Visug , the Belgian Visual Studio user group.

His presentation was based on his personal research into the subject so he didn't gave immediately all the answers. Instead he showed us via concrete examples which difficulties he encountered during his endeavor.

The reason for going N-tier and the way to achieve this were out of scope for the session but decoupling was the key concept he used to convey this requirement.

After a very quick introduction into WCF and the EF, Kurt showed us the challenges you are confronted with if going this route and how WCF, EF or something else could provide a solution: Serialization of object graphs, contract sharing , … But the biggest hurdle in the current implementation seems to be change tracking.

In EF, a special mechanism called the ObjectContext, keeps track of all the things you do with the entity instances you retrieve through the EF infrastructure. This means the entity identification , the relationships ….and also the changes you make to the entity instances or the relations between them. Without the objectContext the EF infrastructure cannot create the necessary insert/delete/update statements for your data store.

Now a typical Service-oriented WCF service (cfr. 4 tenets of SOA ) is stateless in nature. This means that an operation that enables to retrieve an object graph through EF registers this action with the EF objectContext , but due to the nature of the service operation, the objectContext doesn’t stay around.

Kurt showed in some examples what this means for us as a developer . He also tried to come up with solution candidates to the problems like for example re-fetching the entity again and using special functionality from the objectContext the apply the changes. It worked but only for a single entity instance without relations. If you would like to go further …you had to do it yourself. Another solution candidate was to re-attach the object and apply all the changes to the re-attached object . If you had relations….you get the picture: DIY was the common factor in the candidate solutions.

There are some efforts in the EF community to give support of object change tracking in a distributed scenario but some of them are not active anymore and some are more research like efforts to look for solution.


Kurt concluded his presentation with what is coming in Vnext of EF , as told on PDC 2008.

What I remember is that if you’re going to use EF in a distributed scenario you should clearly do your homework first and recognize the potential difficulties you about to face in your situation and come up with a strategy to solve them.

Feel free to check the Visug site if you want to browse through the presentation. Maybe Kurt will also post his examples so you can try them out?

What are your experiences with EF?

Thanks for reading,

Best regards,

Alexander

37 comments:

VI said...

aio交友愛情館情色自拍找援交.0951成人頻道下載.0951影片下載日本av女優.免費線上成人影片bonbonsex.mm賓館sexy diamond.dudu sex台中視訊.sexdiy免費影城.aio性愛dvd辣妹影片直播.月光論壇080大學生視訊.080美女視訊a片線上看.s383情色大網咖寶貝視訊.animal sex援交友聊天室.080性感沙灘3.本土自拍貼圖t 6成人網頁.bt成人論壇.080免費影片線上直播bt程式下載.168論壇aio色妹妹.AIO免費視訊辣妹脫衣秀.xx18 net影片交流區.85cc亞洲東洋影片視訊交友.6k聊天館.援交留言080甜心寶貝貼片區.aaaa片免費看影片.xvediox 歐美av無碼影片下載.la論壇台南援交友留言.聊天室交友.視訊情人高雄網.go2av免費影片情色 網站.一本道 a片 東京熱av免費影片.34c辣妹影片直播.小魔女自拍168論壇.discovery影片下載成人論壇.18成人avooo.youtube影片下載sex999免費影片.視訊交友ggoo.34c甜心寶貝貼片香港論壇.援交影片情色視訊交友.洪爺情色論壇.77p2p視訊聊天.月宮成人文學拉拉情色文學.台南視訊34c美女館.aio甜心寶貝貼片微風論壇.sogo論壇色妹妹免費情慾影片觀賞.本土自拍天堂34c寶貝視訊.xxx383成人視訊.新竹援交成人網站.一本道 a片 東京熱免費試看短片a.成人視訊551281.卡通aa片免費看sexy girl.avhello 成人電影院.寶貝視訊台中援交友留言.色妹妹情色網85cc免費影片.4u成人影音視訊聊天室.xx插插排行榜.aio桃園援交北台灣視訊.百分百貼影片區天空交友.色咪咪貼影片34c辣妹貼圖.視訊kk69.檳榔西施圖片區一夜情視訊.hilive免費線上a電影.3y3成人色色網.比基尼辣妹dudu sex

groverdflorian said...

成人貼圖,成人影片,tt1069同志交友網,成人視訊,aio交友愛情館,情色視訊,情色視訊,色情遊戲,交友戀愛小站,jp成人,熊貓貼圖,成人圖片,美女遊戲,情色自拍,漫畫貼圖,成人電影,成人文學,視訊,情色論壇,聊天,免費視訊,666成人,玩美女人影音秀,尋夢園聊天聯盟,pc交友,4u成人,情色視訊聊天室,歐美免費影片,小高聊天室,0204貼圖區,成人漫畫,免費成人影片,聊天室ut,色情影片,成人貼圖站,69成人,6k聊天室,一葉情貼圖片區,貼圖片區,女同志聊天室,

frankbmullaney said...

xxxmoviea片免費免費影片kk俱樂部視訊一對多視訊大學生情人高雄視訊美女34c高雄視訊美女34c視訊交友網歐美A片觀看成人漫畫區月光論壇av情人輔助品成人a影片論壇影音視訊交友亞洲限制級成人影片區新浪視訊168論壇情趣商品限制級中部人聊天室comsex888維納斯成人85街論壇

努力 said...

haha~ funny! thank you for your share~ ........................................

外太空 said...

When everything is coming your way, you are in the wrong lane.............................................

曉豪 said...

may the blessing be always with you!!........................................

NylaWoodcock0502 said...

very popular to u! ........................................

ZenaT_Pinter2284 said...

0401影音成人影片交流愛撫淫叫色情照片性愛圖片女生如何自慰激突成人論壇美女脫胸罩走光一夜正妹視訊情人性愛論壇85cc影城性伴侶85cc色情影片打手槍情色視訊聊天室色情a片色情色情圖片限制級照片色情電話520sex免費色情網情色性愛一夜情聊天網成人聊天網視訊成人台灣性網av一夜女情色av淫女免費視訊美女挑逗情色影音聊天作愛影片辣妹清涼秀美女做愛成人自拍貼圖成人資訊色論壇台灣色情成人網站色情視訊聊天露三點打砲情色性愛貼圖av成人網成人影片

馨儀 said...

0401影音成人影片交流愛撫淫叫色情照片性愛圖片女生如何自慰激突成人論壇美女脫胸罩走光一夜正妹視訊情人性愛論壇85cc影城性伴侶85cc色情影片打手槍情色視訊聊天室色情a片色情色情圖片限制級照片色情電話520sex免費色情網情色性愛一夜情聊天網成人聊天網視訊成人台灣性網av一夜女情色av淫女免費視訊美女挑逗情色影音聊天作愛影片辣妹清涼秀美女做愛成人自拍貼圖成人資訊色論壇台灣色情成人網站色情視訊聊天露三點打砲情色性愛貼圖av成人網成人影片

0908LonniePettus said...

死亡是悲哀的,但活得不快樂更悲哀。...............................................................

裕以 said...

Efforts to fight fuel!........................................................

麗娟麗娟 said...

仇恨是一把雙刃劍,傷了別人,也傷了自己.........................

俊茹 said...

Many a little makes a mickle.........................................

esthermelvin said...

好文,領受了!謝謝!..................................................

MinB2139 said...

免費看成人影片 免費視訊聊天室 聊天 免費色情漫畫 免費交友 女優色情片 性感 免費影片 辣妹自拍 成人聊天室 愛愛 情趣 18成人線上影片 少女做愛圖 85cc成人 免費a片 情色成人圖 色情片試看 一夜情 383 影音視訊 玩美女人影音秀 自拍美女 性`愛辣妹 人妻自拍貼圖區 做愛影片 a片下載 視訊聊天 a圖貼片站 正妹寫真 85cc免費無碼片 免費視訊 嘟嘟 85cc 歐美貼圖 援交 情人視訊 鋼管秀 avooo 洪爺情色聊天 大奶辣妹 sex520 下載免費a片 日本巨乳 拓網交友 後宮電影院主入口 限制級 0204電話聊天 美國性愛 走光寫真

佳梅 said...

I guess I will need a lot..................................................

asda said...

期待你每一篇文章......................................................................

佳燕 said...

河水永遠是相同的,可是每一剎那又都是新的。......................................................................

志穎志穎 said...

Pen and ink is wits plough.................................................................

嘉琬嘉琬 said...

成熟,就是有能力適應生活中的模糊。.................................................................

李威昌 said...

人有兩眼一舌,是為了觀察倍於說話的緣故。............................................................

ju吳phe宇te佳ns said...

大師手筆﹐果然不凡............................................................

于倫 said...

大家隨便說,說什麽都好,就是請不要惦惦............................................................

楊儀卉 said...

喜歡自己的另一層意義是「接納自己」。.......................................................

宥妃宥妃 said...

Gold will not buy everything...................................................

錢靜怡錢靜怡錢靜怡 said...

教育的目的,不在應該思考什麼,而是教吾人怎樣思考............................................................

廖淑鄭志嘉娟 said...

很不賴的分享!! 多謝啦!!◑0◐............................................................

曹韻婷 said...

人生中最好的禮物就是屬於自己的一部份............................................................

馬志榮惠玲成 said...

我來湊熱鬧的~~^^ 要平安快樂哦............................................................

惠慧萍婷 said...

Lets cross the bridge when we come to it............................................................

姜鴻林奕宏琬 said...

Practice makes perfect.............................................................

馨儿 said...

聰明人之所以不會成功,是因為他們缺乏了堅忍的毅力。.................................................

1615 said...

河水永遠是相同的,可是每一剎那又都是新的。..................................................

忠姜姜姜蓮 said...

開懷幸福的生活,是每個人的夢想~~希望大家都能夠實現!...............................................................

玉韓韓韓婷韓韓韓韓 said...

當一個人內心能容納兩樣相互衝突的東西,這個人便開始變得有價值了。............................................................

靜蔡蔡蔡蔡怡 said...

在莫非定律中有項笨蛋定律:「一個組織中的笨蛋,恆大於等於三分之二。」..................................................

sabyasachi singh said...

Thanks for the information.

SyonIndia is a Software Development, Website development and SEO company in Bhubaneswar. We offer professional software development services in Bhubaneswar India. Our developers are highly skilled, advance and expert to execute things up to the mark and are efficient enough to cope up with new platforms. We are the leading software development company in Bhubaneswar.
http://syonindia.com