Never mind...Figured it out.
On Apr 6, 10:40 am, Raj <rajani.gayat...@gmail.com> wrote: > I am trying to encrypt my entities by creating a NHibernate IUserType > as described > inhttp://ayende.com/Blog/archive/2008/07/31/Entities-dependencies-best-... > > I keep getting the error > could not interpret type: > referasmoker_datamodel.UserTypes.EncryptedStringUserType,referasmoker_datamodel.UserTypes > > Exception Details: NHibernate.MappingException: could not interpret > type: > referasmoker_datamodel.UserTypes.EncryptedStringUserType,referasmoker_datamodel.UserTypes > > [MappingException: Could not compile the mapping document: (string)] > > namespace xxx.UserTypes > { > //Documentation > athttp://ayende.com/Blog/archive/2008/07/31/Entities-dependencies-best-... > //Using User > Typeshttp://www.mostlyclean.com/post/2007/11/Increasing-DateTime-storage-p... > public partial class EncryptedStringUserType : IUserType > { > > public new bool Equals(object x, object y) > { > return object.Equals(x, y); > } > > public int GetHashCode(object x) > { > return x.GetHashCode(); > } > > ... > } > > } > > my ActiveRecord class > > namespace xxx > { > using System; > using System.Collections.Generic; > using System.Collections; > using Castle.ActiveRecord; > using referasmoker_datamodel.Services; > using NHibernate.UserTypes; > using System.Data; > using NHibernate.SqlTypes; > > [ActiveRecord("Users", Lazy = true, Schema = "dbo")] > public partial class Users : ActiveRecordBase<Users> > { > > ... > > [Property("emailaddress", ColumnType = > "xxx.UserTypes.EncryptedStringUserType,xxx.UserTypes")] > public virtual string Emailaddress > { > get > { > return this._emailaddress; > } > set > { > this._emailaddress = value; > } > } > ... > > } > > } > > When I did a debug output of the mapping It looks fine > > <property name="Emailaddress" access="property" > type="xxx.UserTypes.EncryptedStringUserType,xxx.UserTypes"> > <column name="emailaddress"/> > > --- > > Am I doing something wrong? > I am using WCSF, ActiveRecord (release 1) combination. -- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to castle-project-us...@googlegroups.com. To unsubscribe from this group, send email to castle-project-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.