Hi I was searching for a long time for a OR-framework with linq support. At the Time i am trying to get my own sample started. The project consists off only two classes: My Entity and another Form. But each time i want to save my object i get stackoverflowerrors.... Is there a really small sample for Do4.0 ? Because everything i downloaded is for 3.9.... Or can anyone help me with my code ?
and my mapping code
Updated at 12.03.2009 8:56:47Hi! i don't think that it is an problem with DO. I don't get started with the samples you provide. Is there any very small sample on which i see the use of domain, session and transaction ? The following code does not insert an Adress either :-/
DA gets an Connection to the Server, because the Tables have been generated... Updated at 12.03.2009 9:41:07ok, thanks, now i'am a step closer to the goal of my sample - inserting a phone number. With the code you provided, the application inserts exactly one row - no matter how often i execute it. the inserted row contains an id , an typeid, but my value (phone number ) is null :-( One question to the transaction scope,in the sample you ship with, the transaction scope isn't used and works fine? Why? This thread was imported from our support forum. The original discussion may contain more detailed answer. Original topic by Jeb. |
Alex (Xtensive) wrote:And additionally:
Alex Kofman wrote:
Here it is:
Alex Kofman wrote:It seems you has not applied [Persistent] attribute on your model assembly. Just add such line to AssemblyInfo.cs file:
Where "YourModelNamespace" is namespace, where your persistent classes are declared, e.g. in our samples it is "Xtensive.Storage.Samples.Model". p.s. if you use our project template, this attribute is generated automatically. Alex Kofman wrote:
I'm sorry... There is a mistake. You should specify your assembly name (without dll suffix), not namespace!
|
Alex Kofman wrote: Hello, Jeb
Try to use Session in a such way: