Step through the code.
On Sat, Sep 13, 2008 at 2:20 AM, c.sokun <[EMAIL PROTECTED]> wrote:
>
> ah huh I see but this trick doesn't seem to solve the problem.
> I believe it is something to do with the validationbase because
> ActiveRecordBase<T> doesn't cause this problem
>
> On Sep 12, 2:10 pm, "Simone Busoli" <[EMAIL PROTECTED]> wrote:
> > I guess he meant PluralizeNames.
> >
> > On Fri, Sep 12, 2008 at 9:04 AM, c.sokun <[EMAIL PROTECTED]> wrote:
> >
> > > Hmm, I can't find ParralizeNames=true where can I apply this
> > > attribute?
> >
> > > On Sep 12, 9:50 am, "Ayende Rahien" <[EMAIL PROTECTED]> wrote:
> > > > Looks like there is a disparity between the "Agent" that you specify
> and
> > > the
> > > > table it creates.Are you specifying ParralizeNames=true?
> >
> > > > On Fri, Sep 12, 2008 at 5:42 AM, c.sokun <[EMAIL PROTECTED]>
> wrote:
> >
> > > > > I have notice that if I create and class derived from
> > > > > ActiveRecordValidationBase<T> I would get the following exception
> when
> > > > > I tried to run the test.
> >
> > > > > System.Data.SQLite.SQLiteException: SQLite error
> > > > > no such table: Agents
> >
> > > > > [ActiveRecord("Agent")]
> > > > > public class Agent: ActiveRecordValidationBase<Agent>{
> > > > > private int id;
> > > > > private string name;
> > > > > ....
> > > > > }
> >
> > > > > [Test]
> > > > > public void Can_Create_Agent()
> > > > > {
> > > > > Agent agent = new Agent();
> > > > > agent.Name = "Agent #1";
> >
> > > > > Repository<Agent>.Save(agent);
> >
> > > > > int id = agent.Id;
> > > > > Assert.Greater(id, 0);
> >
> > > > > UnitOfWork.CurrentSession.Flush();
> > > > > UnitOfWork.CurrentSession.Evict(agent);
> >
> > > > > agent = Repository<Agent>.Get(id);
> >
> > > > > Assert.AreEqual("Agent #1", agent.Name);
> >
> > > > > }
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Rhino Tools Dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rhino-tools-dev?hl=en
-~----------~----~----~----~------~----~------~--~---