I have the following class CustomForm. I was wondering if it is possible
to query for custom forms which have a particular value in a particular
key in their dictionary.
[Serializable]
[ActiveRecord]
public class CustomForm : ActiveRecordBase<CustomForm> {
IDictionary<string, string> _form;
public CustomForm() {
_form = new Dictionary<string, string>();
}
[PrimaryKey(PrimaryKeyType.GuidComb, "Id")]
public virtual Guid Id { get; set; }
[Property(NotNull = true)]
public virtual string Name { get; set; }
[Property(NotNull = true)]
public virtual DateTime CreatedDate { get; set; }
[HasMany(typeof(string), "Id", "CustomFormData", Element =
"`Value`", ElementType = typeof(string), Index = "`Key`")]
public virtual IDictionary<string, string> Form { get { return
_form; } set { _form = value; } }
}
--
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.