Can you post the class please?

On Fri, May 27, 2011 at 20:43, scottl2001 <[email protected]> wrote:

>
> Hello all -
>
> Having a problem inserting into a new table via Castle/NHibernate.
> When adding an initial record, it's erroring out, and giving the stack
> trace listed below.  All fields match up viv-a-vis field types, and
> I'm using the same methods inserting into existing tables, and it
> works fine.  Permissions don't seem to be a problem either.
>
> Any ideas?
>
> Thanks!
>
>
>
> ******************************************************************************
>
> Message:
> Could not perform Create for StyleImport
> Exception Trace:
>   at Castle.ActiveRecord.ActiveRecordBase.InternalCreate(Object
> instance, Boolean flush)
>   at Castle.ActiveRecord.ActiveRecordBase.Create(Object instance)
>   at Castle.ActiveRecord.ActiveRecordBase.Create()
>   at StyleApplication.Data.Providers.BaseProvider`1.Add(T record) in
> C:\development2\In Progress\StylesApplication\StyleApplication.Data
> \Providers\BaseProvider.cs:line 26
>   at StyleProcessor.Processor.ProcessImports(ImportCollection
> imported, String filename) in C:\development2\In Progress
> \StylesApplication\StyleProcessor\Processor.cs:line 108
>
> Inner Exception:
> could not insert: [StyleApplication.Data.Models.StyleImport][SQL:
> INSERT INTO StyleImport (AddCustomerName, BlanksCrossReference,
> CharacterWidthTable, DateLastPriceChange, DateLastSoldYYMM) VALUES
> (?, ?, ?, ?, ?)]
> Inner Exception Trace:
>   at
> NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object[]
> fields, Boolean[] notNull, SqlCommandInfo sql, Object obj,
> ISessionImplementor session)
>   at
> NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object[]
> fields, Object obj, ISessionImplementor session)
>   at NHibernate.Impl.ScheduledIdentityInsertion.Execute()
>   at NHibernate.Impl.SessionImpl.Execute(IExecutable executable)
>   at NHibernate.Impl.SessionImpl.DoSave(Object theObj, EntityKey key,
> IEntityPersister persister, Boolean replicate, Boolean
> useIdentityColumn, CascadingAction cascadeAction, Object anything)
>   at NHibernate.Impl.SessionImpl.DoSave(Object obj, Object id,
> IEntityPersister persister, Boolean useIdentityColumn, CascadingAction
> cascadeAction, Object anything)
>   at NHibernate.Impl.SessionImpl.SaveWithGeneratedIdentifier(Object
> obj, CascadingAction action, Object anything)
>   at NHibernate.Impl.SessionImpl.Save(Object obj)
>   at Castle.ActiveRecord.ActiveRecordBase.InternalCreate(Object
> instance, Boolean flush)
>
> ***********************************************
>
> --
> You received this message because you are subscribed to the Google Groups
> "Castle Project Users" 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/castle-project-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" 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/castle-project-users?hl=en.

Reply via email to