Altinet
  • Home
  • Blog
  • Contact


Posts in the [ Uncategorized ] Category

Associations and insert ordering

On 21 Mar, 2011
Uncategorized
By : Bruno Samardzic
No Comments

Well, i ran into an issue while inserting multiple records which is nicely described in my post on a forum: http://forums.silverlight.net/forums/t/222783.aspx Long story short, ria services doesn't take care of the ordering of the items when calling insert methods for entities, ie it could easily call insert on child before parent. This problem doesn't show itself when using Composition attribute, but it's not like you want to use that attribute every time, so if you're not using you're pretty much leaving yourself at the mercy of your ORM. And Nhibernate is pretty crude sometimes in some respects, one of them being...

Read More

The Memory Leakage Pwnage

On 18 Feb, 2011
Uncategorized
By : Bruno Samardzic
With 2 Comments

There's really something scary about when the whole foundation of your work starts to tremble because of some things not directly under your control. That's what scares me the most about Microsoft being such a dominant force int the .NET ecosystem. Don't get me wrong, there's a LOT of good stuff happening because of Microsoft, and guys over there can be really helpful, but the latest troubles i encountered with the dreaded memory leakage really shook me up. Exhibit A: http://forums.silverlight.net/forums/t/171739.aspx Long story short, there was a severe memory leak caused by inline datatemplates, and it's one of the issues that,...

Read More

Ria services, presentation model, complex types as query arguments, and how to do it better and simpler

On 18 Feb, 2011
Uncategorized
By : Bruno Samardzic
No Comments

Ok, i'm putting this here so i can get back to this later and finally write this one down, along with some nice examples and code samples. This is a sequal of on of previous blog posts. It turned out to be REALLY beneficial, for a number of reasons so stay tuned.... Now onward with the topic of the...

Read More

Dataform, Ria Services, Combobox and Validation

On 02 Feb, 2011
Uncategorized
By : Bruno Samardzic
With 9 Comments

As you may figured out from 1 of my previous posts, i'm not a big fan of Silverlight Dataform control, although I do like some of the capabilities presented there. In fact, after numerous frustrations with it, i decided to roll my own customization of it, rip out everything i didn't need and adjust it to act the way i like it. You can find my first stab at it in this post. That turned out to be one of the better decisions, although fighthing with the code mess inside the datafirn proved to be quite a challenge. Lately i...

Read More

Animation for starred grid rows and columns using xaml

On 24 Jan, 2011
Uncategorized
By : Bruno Samardzic
With 8 Comments

If you had problems with animating gridcolumn widths or gridrow heights i have a solution for your problems. put the following class somewhere in your project: 1 And the usage model would look something like this 1 The important part is in DoubleAnimation tag where you set the extended property GridLengthAnimation.Element where column2 is a name of a column. 3 and 0 are starred values. but with some tweaking of this simple model, you can basically do whatever you want. UPDATE: I have updated the code, now it supports both starred and fixed column/row widths/heights. Enjoy! UPDATE 2 I've put a more complete code for one of...

Read More

Ria services, presentation model, user types as query arguments, and how i got here in the first place:)

On 21 Jan, 2011
Uncategorized
By : Bruno Samardzic
No Comments

As you may know, in the most recent ria services beta release complex types were introduced which can be used for invoke operations and as entity properties. For additional information i'd advise you to check the following link: Complex types in RIA Services Now why is this of interest? The rant, skip this part if you just want to go to the problem When i designed my system i had to make a few decisions, 2 of which being: 1. What ORM i'm going to use - i went with NHibernate 2. Presentation model or exposing my domain models - i went with presentation model,...

Read More

Debugging code generation and custom metadata provider for RIA services

On 20 Jan, 2011
Uncategorized
By : Bruno Samardzic
No Comments

I wasn't very happy when i saw the default way RIA services handles validation. It's either having attributes directly on your classes or it's those clumsy metadata inner classes which have the same property names as the parent ones. I like the fluent approach, and that approach is explained here: RIA Services Fluent Metadata API I even used it and modified it in my example which i presented in the following codeproject: Setting up Silverlight, RIA Services, NHibernate and Validators It's a good example of the same thing. Anyway, i did some modifications to that code and i didn't know how to...

Read More

Note to self: NHibernate – Adding nullable columns for non nullable value type properties

On 11 Jan, 2011
Uncategorized
By : Bruno Samardzic
No Comments

Ok, i was kinda hung up on this one for 3 hours or so. I added a new column to the database, a boolean one. I mapped it to my domain object, which is also boolean (not nullable). Fired up my project, tried to do the query only to get: Could not execute query [SQL: SQL not available] And the inner exception would just be Object reference not set to an instance of an object. Since the boolean addition was not the only change in the system (i did quite a few of them) i suspected something else going awry. Anyway, google didn't help...

Read More

Note to self: ParseQueryString Source

On 01 Jan, 2011
Uncategorized
By : Bruno Samardzic
No Comments

Every now and then, you need something really simple and you just can't find it. Well i spent some time looking for this so that i wouldn't have to write it myself (it's not available in Silverlight assembly). I couldn't even disassemble it for some reason. So here it goes: 1...

Read More

Hello internet!

On 19 Dec, 2010
Uncategorized
By : Bruno Samardzic
No Comments

And it was about time! I was pondering and planning this for ages, and i finally came through with setting up this blog, which i hope will eventually hold a few gems useful for some people. I'm an avid follower of a few blogs (i'll be recommending some later on) and after a while i started feeling like i was taking away from the community more than it was decent without giving anything back. I'm a professional developer with a particular interest in using Silverlight in LOB application, design patterns, software architecture, code generation and a lot of stuff in-between  (as the subtitle...

Read More

  • Page 4 of 4
  • 1
  • 2
  • 3
  • 4


Recent Posts

  • Angular vs React: round 2
  • Why programming is hard
  • Orchard Workflows, undocumented gem
  • The React Redux
  • React.js invoicing CRUD application, part 2: Description

Recent Comments

  • Angshuman on Animation for starred grid rows and columns using xaml
  • Advanced Excel Training in Lucknow on Angular vs React: round 2
  • Reginald Sophomore on My example of Angularjs directive
  • Slobodan on Angular and Breeze – story so far.
  • Bruno Samardzic on Reaction to Ember-forged Durandal Angularly Knocking out my Backbone, or my JS MVC framework research conclusion.

Contact

Altinet d.o.o.

OIB: 97429091194

Čulinečka cesta 146, Zagreb

Tel: +385 (1) 2946 819

Mob: +385 (98) 210 756

IBAN: HR4323400091110406470

Latest tweets