extJS and the JSON dot.net serilizer, spelled correctly or not, does
this to datetime's /Date(232324455...) i get it and understand it, but
i don't want it.
if i change this <property name="Released" type="Date"></property> to
<property name="Released"></property>  and in my class (model in
MVC.NET)
do:
    public class Movie : PersistedBase
    {
        protected internal Movie()
        {}

        public Movie(int intId, string title, string director,
DateTime released, int genre, string tagLine, decimal price, bool
available, string thumbImage)
        {
            IntId = intId;
            Title = title;
            Director = director;
            Released = released.ToString("yyyy-MM-dd hh:mm:ss");
<------------ *****************
            Genre = genre;
            TagLine = tagLine;
            Price = price;
            Available = available;
            ThumbImage = thumbImage;
        }

        public virtual int IntId { get; set; }
        public virtual string Title { get; set; }
        public virtual string Director { get; set; }
        // public virtual DateTime Released { get; set; }
        public virtual string Released { get; set; } <-----------
*********************************
        public virtual int Genre { get; set; }
        public virtual string TagLine { get; set; }
        public virtual decimal Price { get; set; }
        public virtual bool Available { get; set; }
        public virtual string ThumbImage { get; set; }
    }
}

i get the date in a form that works ok for extJS. pushing it back is
an unknown to me. I'd like to know if this is the way it should be
done and if not how do you extJS / Nhibernate users do this? I figure
the set will throw an exception, string to date,  so i'm also
wondering how to handle that.

--

You received this message because you are subscribed to the Google Groups 
"nhusers" 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/nhusers?hl=en.


Reply via email to