Monthly Archives: October 2009

My Timer usage and references moral

Few minutes ago I got flash of intelligence. I’m using Timer in one of my windows service running simply 24×7. And I had a bug getting wrong data on server that I was not able to reproduce locally. Same data, … Continue reading

  • Twitter
  • Facebook
  • Share/Bookmark
Posted in .* | Tagged , , | 1 Comment

Přednáška ADO.NET Entity Framework – MFF UK, Praha

Pokud jste nestihli první nebo přednášku, máte v Praze další šanci. 3.11.2009 (úterý) od 17:20 v rámci programátorských večerů na MFF UK. Více info nebo , registrace na http://akce.altairis.cz. Prezentace ke stažení.

  • Twitter
  • Facebook
  • Share/Bookmark
Posted in .* | Tagged , , , , , , | Leave a comment

Kindle (International) – první zkušenosti

Kindle konečně včera dorazil, takže jej nyní mám necelých 24 hodin a ještě musíme odečíst spánek. Poznatky jsou tedy zatím povrchní. Nejprve obrázek – porovnání Kindlu s běžnou kreditní kartou. Kindle je jednoduchý – za dvě, tři hodiny zmáknete 99% … Continue reading

  • Twitter
  • Facebook
  • Share/Bookmark
Posted in .* | Tagged | 19 Comments

Attaching non-detached entity in Entity Framework v4 doesn’t throw exception

While slowly digging into Beta 2 of EF4 I discovered new nice “feature”. In EF1, if you had code like this. master[] data; using (testovaciEntities ent = new testovaciEntities()) { data = ent.masters.ToArray(); } using (testovaciEntities ent = new testovaciEntities()) … Continue reading

  • Twitter
  • Facebook
  • Share/Bookmark
Posted in .* | Tagged | Leave a comment

Associations without foreign keys

Michal Bláha asked me, before when I stopped in his office, whether it’s possible to create associations in Entity Data Model without foreign keys in database, as he’s not using FKs, he’s enforcing referential integrity in application (yeah, if you’re … Continue reading

  • Twitter
  • Facebook
  • Share/Bookmark
Posted in .* | Tagged | Leave a comment

Superb gesture from Amazon

Few days ago I bought Amazon Kindle, the international version, as I’m not U.S.. The international version is was +$20 to the U.S. only version. And today I got email from Amazon saying that the price has been lowered to … Continue reading

  • Twitter
  • Facebook
  • Share/Bookmark
Posted in .* | Tagged , | Leave a comment

Enum.HasFlag is in .NET 4

Today I noticed, that in beta 2 of .NET Framework 4 (and Visual Studio 2010) there’s a new method for enums – HasFlag. Using bitwise operators was sometimes ugly and decreased the readability of code, hence (I think) almost everybody … Continue reading

  • Twitter
  • Facebook
  • Share/Bookmark
Posted in .* | Tagged | Leave a comment

What’s new in Entity Framework 4 Beta 2 and ADO.NET Data Services 4 Beta 2

Nice list at http://blogs.msdn.com/adonet/archive/2009/10/19/vs2010-and-net-framework-beta-2-announced.aspx.

  • Twitter
  • Facebook
  • Share/Bookmark
Posted in .* | Tagged , , , , , | Leave a comment

Firebird(Client) with Silverlight

I had this idea on my list for a couple of months and I was always postponing it, because it’s stupid. But you know. Exploring the unexplored ways, that’s what I like to do . But during (or after, I … Continue reading

  • Twitter
  • Facebook
  • Share/Bookmark
Posted in .* | Tagged , , | 1 Comment

Memory mapped files in .NET 4

Similarly to my way to , I found MemoryMappedFiles namespace, which is new in .NET 4. It’s in System.IO. If you’ve done some work in stone ages in C/C++ or maybe ObjectPascal (Delphi) you may remember using these files. I … Continue reading

  • Twitter
  • Facebook
  • Share/Bookmark
Posted in .* | Tagged , , , | Leave a comment

Firebird Developers’ Day 2009 :(

Možná jste si všimli, že jste si nevšimli žádné upoutávky na letošní Firebird Developers‘ Day. Není to chyba na vašem přijímači. Zatím žádné takové oznámení nebylo. Popravdě, letos to s Firebird Developers‘ Day vypadá špatně. Ačkoli stále tvrdím, že “krize” … Continue reading

  • Twitter
  • Facebook
  • Share/Bookmark
Posted in .* | Tagged , , | 3 Comments

Multithreading with Entity Framework

From time to time I get a question about using ObjectContext from more than one thread. Because Entity Framework sits on top of ADO.NET, it’s obvious, it cannot be thread safe. So if you need to use n threads, use … Continue reading

  • Twitter
  • Facebook
  • Share/Bookmark
Posted in .* | Tagged , | Leave a comment

Model Defined Function as a method on entity (or on type for store function)

Model Defined functions are new feature in EFv4. You simply define you function using EDM functions etc. in your model and then you can use it in your queries. With EdmFunction attribute you can also create stub function to use it … Continue reading

  • Twitter
  • Facebook
  • Share/Bookmark
Posted in .* | Tagged , , | Leave a comment

Přednáška ADO.NET Entity Framework – WUG, Brno

20.10.2009 (úterý) od 17:00 budu přednášet o novince (je to ještě novinka, když .NET 4 je za dveřmi?) v .NET 3.5 SP1 – Entity Framework. Tentokrát v Brně. Stejně jako v se podíváme na nové vlastností, které přinese Entity Framework … Continue reading

  • Twitter
  • Facebook
  • Share/Bookmark
Posted in .* | Tagged , , , , , , | Leave a comment

My Phone – folder synchronization disappointment

I just found out that My Phone was released (is it a long time or not? ). Although I’m synchronizing my device with Exchange server, I’m really missing (wireless) file synchronization – either with some folder on my computer or … Continue reading

  • Twitter
  • Facebook
  • Share/Bookmark
Posted in .* | Tagged | Leave a comment

Moving tray icons in Windows 7

Today I found interesting thing. Tray icons in Windows 7 keep their position and you can reorder them in a way you want. What a great idea. Because I like all tray icons to be visible, I can now place … Continue reading

  • Twitter
  • Facebook
  • Share/Bookmark
Posted in .* | Tagged | Leave a comment

Generated primary key in Entity Framework model from Firebird

Firebird doesn’t have identity/autoincrement columns like i.e. MS SQL or MySQL. Firebird has concept of generators/sequences (as know i.e. in Oracle). This is more powerful concept, but comes also with drawbacks, because you can say for sure, whether the column … Continue reading

  • Twitter
  • Facebook
  • Share/Bookmark
Posted in .* | Tagged , , | 8 Comments

Přednáška ADO.NET Entity Framework – Microsoft, Praha

13.10.2009 (úterý) od 17:30 budu přednášet o novince (je to ještě novinka, když .NET 4 je za dveřmi?) v .NET 3.5 SP1 – Entity Framework. A nejen to. Zabředneme také do nových vlastností, které přinese Entity Framework v4 v .NET … Continue reading

  • Twitter
  • Facebook
  • Share/Bookmark
Posted in .* | Tagged , , , , , , | Leave a comment