IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1825.68 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-07-28
[21:37]<afd>jaybuffet: as i know hibernate/nhibernate has the most complex and complete mappings
[21:37]<lxzjsvd>Spanska: you havn't mentioned what XML api you are using, if any
[21:37]<afd>jaybuffet: basically you dont care about foreign keys
[21:37]<rrd2uppnv>why not
[21:37]<afd>jaybuffet: every classes are plain classes, no DB-related thing from your model code
[21:37]<afd>jaybuffet: for example if your Account class has a User property
[21:38]<afd>jaybuffet: it will be assigned a foreign key automatically
[21:38]<afd>jaybuffet: but from your code you dont need to know
[21:38]<rrd2uppnv>shouldnt that user property be a class that maps to another table ?
[21:38]<afd>jaybuffet: yes
[21:39]<afd>jaybuffet: it also supports "components", for example you put your Username and Age etc into the Account class itself
[21:39]<slrgscr>phrosty: sorry, the one that Microsoft does. Using System.Xml;
[21:39]<lxzjsvd>Spanska: are you using an XmlDocument, XmlReader? what?
[21:41]<afd>jaybuffet: from my experience the mapping itself doesnt make any problem. But you will be bothered by other issues like lazy-loading, or when you have to touch the internals
[21:41]<slrgscr>phrosty: and XmlDocument. It's the first time I use XML stuff. If I should use something else, feel free to tell me.
[21:42]<awjzdd>AqD: use Castle:ActiveRecord
[21:42]<lxzjsvd>gotta start somewhere, and xmldocument is easiest probably
[21:42]<awjzdd>on top of NHibernate
[21:42]<awjzdd>for cleaner code.
[21:42]<awjzdd>and easier mappings
[21:42]<afd>jwormy: i need to access nhibernate's internals
[21:42]<awjzdd>AqD: AR gives you that
[21:42]<awjzdd>its built on top of NHibernate
[21:42]<afd>jwormy: for example my aqdweb offers per-type interceptors
[21:42]<awjzdd>you can grab an NHibernate session anytime you like
[21:43]<lxzjsvd>Spanska: look at SelectNodes(), and learn a little bit of xpath (not hard)
[21:43]<afd>jwormy: every of your classes can have their own interceptors, working at the same time etc
[21:43]<afd>jwormy: and transparent version cloning and other stuff
[21:43]<awjzdd>AqD: i actually do all my queries as if i were working with NHibernate and not AR
[21:43]<awjzdd>AqD: don't dismiss AR
[21:43]<rrd2uppnv>AR >
[21:43]<awjzdd>;)
[21:43]<rrd2uppnv>AR?
[21:43]<awjzdd>Active Record.
[21:43]<rrd2uppnv>ok
[21:43]<awjzdd>jaybuffet: www.castleproject.org
[21:43]<afd>jaybuffet: castle re-make it for .NET, built on nhibernate
[21:44]<afd>jwormy: but AR uses static methods
[21:44]<afd>jwormy: it's not extensible
[21:44]<rrd2uppnv>so is this comparable to aqdweb ad is that why u guys are debating ?
[21:44]<afd>jaybuffet: no it's different, as i said
[21:44]<afd>jaybuffet: the main focus of aqdweb is 2-way data binding
[21:45]<afd>with a new page lifecycle
[21:45]<rrd2uppnv>what does that mean.. 2-way binding ?
[21:45]<afd>persistence is only part of it and it's mainly taken care by nhibernate not aqdweb
[21:45]<afd>jaybuffet: see my home page :)
[21:45]<afd>the 3rd code block
[21:45]<rrd2uppnv>im doing winform now
[21:46]<afd>jaybuffet: it may not be good for winform
[21:46]<afd>jaybuffet: the two-way data binding i mean is not for datagrid or other data controls, but for generic controls (ALL controls)
[21:46]<awjzdd>AqD: link me to your page
[21:46]<afd>http://aqdweb.sourceforge.net/HomePage
[21:47]<rrd2uppnv>what type of <input /> control is that ?
[21:47]<afd>jaybuffet: for example, a TextBox may have its Text mapped to your form's User.Name property
[21:47]<afd>jaybuffet: it's asp.net's html controls
[21:47]<awjzdd>you can do two way databinding with NVelocity and monorail like that also
[21:47]<rrd2uppnv>it doesn't have a type on your example
[21:47]<rrd2uppnv><input runat="server" ext-serverClick="SaveUsers()"/>
[21:48]<afd>jaybuffet: OHHHHHH!
[21:49]<afd>it's a submit button
[21:49]<afd>when it's clicked, the request to server, it invokes SaveUsers
[21:49]<rrd2uppnv>and what about in the foreach loop
[21:49]<rrd2uppnv>are those hidden
[21:49]<rrd2uppnv>and what about ID's.. do you need thos
[21:50]<rrd2uppnv>and runat ?
[21:50]<rrd2uppnv>oh you got runat
[21:50]<afd>jaybuffet: it go through UserList collection
[21:50]<rrd2uppnv><input runat="server" bind-value="#usr.Name"/>
[21:50]<afd>jaybuffet: then evaluate the content for every User
[21:50]<afd>a textbox for every users' name
[21:50]<awjzdd>AqD: classical asp.net pages are teh suck
[21:50]<rrd2uppnv>is that a oh so type=input
[21:50]<rrd2uppnv>:-)
[21:51]<afd>jwormy: but you need components
[21:51]<awjzdd>AqD: for what?
[21:51]<afd>jwormy: monorails doesn't support UI components
[21:51]<awjzdd>AqD: what UI Components do you need?
[21:51]<afd>jwormy: how do you build a tree view with monorails?
[21:51]<rrd2uppnv><input runat="server" bind-value="#usr.Name"/> != <input runat="server" type=input bind-value="#usr.Name"/>
[21:51]<afd>jwormy: hard code it?
[21:51]<awjzdd>wtf do you want a tree view for on a webpage?
[21:51]<afd>jaybuffet: type="text" is the default
[21:51]<rrd2uppnv>ok
[21:51]<afd>jwormy: for web apps ;)
[21:52]<afd>jwormy: i dont know
[21:52]<awjzdd>AqD: pfft.. exactly!
[21:52]<afd>jwormy: but i want it to have eveyrthing
[21:52]<awjzdd>AqD: my websites are *fully featured* without components
[21:52]<afd>jwormy: it does save a lot of time for some tasks
[21:52]<afd>jwormy: what if you need a calendar?
[21:52]<awjzdd>AqD: there are plenty of css calenders
[21:52]<afd>jwormy: or you are building web file manager and need tree view?
[21:52]<afd>jwormy: they're plain UI, they dont act
[21:52]<awjzdd>AqD: you can do links and list items
[21:53]<awjzdd>AqD: yes they do act
[21:53]<slrgscr>phrosty: thank you! How can I handle an exception thrown by the Load member of XmlDocument (for example when the XML doesn't exist) ?
[21:53]<awjzdd>i shall show you, sec
[21:53]<afd>jwormy: yes link and lists.. but they dont act with the server side
[21:53]<afd>jwormy: i dont mean the js







