views:

53

answers:

1

Is there a built-in way to do an "insert-or-update" in Castle ActiveRecord?

Something along the lines of:

try
{
  ActiveRecordMediator<TEntity>.Create(e);
}
catch (Exception)
{
  ActiveRecordMediator<TEntity>.Update(e);
}
+4  A: 
ActiveRecordMediator<Foo>.Save(foo);
Krzysztof Koźmic