Re: ActiveRecord - Making a HasManyToAny relationship more efficient

2009-09-11 Thread William Chang
a table), it should be an interface on the Repository classes. Sincerely, William Chang On Sep 11, 11:43 am, JakeS jakesteven...@gmail.com wrote: I have a system where categories can be assigned to multiple objects (such as a Calendar Event or an Action Item) within the system.  Each of those objects

Re: selecting needed columns with criteria api

2009-09-11 Thread William Chang
} ).ToList(); } Sincerely, William Chang http://www.williamchang.org http://www.babybluebox.com On Sep 7, 10:22 pm, olcay şeker delimav...@gmail.com wrote:  how can i write this query  select firstname,lastname from employees with ICriteria api instead of hql? i tried

Re: ActiveRecord - Making a HasManyToAny relationship more efficient

2009-09-11 Thread William Chang
CRUD). Please Google more about repository pattern to learn more. Sincerely, William Chang On Sep 11, 3:17 pm, JakeS jakesteven...@gmail.com wrote: Thank you for the advice, but I'm still unsure exactly how to proceed, partly because if my inexperience with using the repository pattern. How

Re: ActiveRecord - Making a HasManyToAny relationship more efficient

2009-09-11 Thread William Chang
and your business-logic/view layers. The repository (interface) contains methods and the methods contains queries. Sincerely, William Chang http://www.williamchang.org http://www.babybluebox.com On Sep 11, 4:40 pm, JakeS jakesteven...@gmail.com wrote: It's obvious I'm not using ActiveRecord the right

Re: ICriterion cannot query deep on other properties? (within another class property)

2009-08-27 Thread William Chang
I sent a private email containing the source code file attachments to Markus Zywitza. Let me know anybody wants to see it? Sincerely, William Chang http://www.williamchang.org http://www.babybluebox.com On Aug 27, 10:32 am, Markus Zywitza markus.zywi...@gmail.com wrote: Can you send

ICriterion cannot query deep on other properties? (within another class property)

2009-08-24 Thread William Chang
/ActiveRecordQueriesOrQuotHowToQueryDeepquot.aspx *Specs: * ASPNET 3.5 SP1 MVC 1.0 MySQL 5.0.24a MySQL Connector/Net 6.1.1 NHibernate 2.1.0GA Castle ActiveRecord 2.0 Thank you for your help, William Chang --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: BelongsTo Lazy load

2009-08-14 Thread William Chang
=true in my App.config (modal nunit test) and it did not pull anything off the database (e.g. SELECT). Sincerely, William Chang On Aug 14, 1:05 pm, JimmyJamz sja...@gmail.com wrote: I upgraded to the latest Active Record a couple days ago and am testing out current software that's been developed

Not working: Lazy FetchWhen.OnInvoke (Parent Child, Heirarchy)

2009-08-10 Thread William Chang
: ActiveRecordBaseListItem { [BelongsTo(itemListId, Lazy = FetchWhen.OnInvoke)] public virtual List itemList {get;set;} } Please help? Specs: NHibernate 2.1.0GA Castle ActiveRecord 2.0 ASP.NET 3.5 SP1 MVC 1.0 Thanks, William Chang --~--~-~--~~~---~--~~ You received

Problem using Create() with HasAndBelongsToMany: association table with surrogate key

2009-08-03 Thread William Chang
)] public virtual User entityUser {get;set;} } Specs: Microsoft ASPNET 3.5 MySQL 5.0.24a MySQL Connector/Net 6.1.0 NHibernate 2.1.0GA Castle ActiveRecord 2.0 Please help? Thank you, William Chang --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Problem using Create() with HasAndBelongsToMany: association table with surrogate key

2009-08-03 Thread William Chang
Testsoft.Data.Models.TransactionGroupUser() { entityTransaction = obj1, entityUser = users[j] }; obj2.Create(); } } By the way, thank you Markus for helping me out and replying to all my previous emails. Sincerely, William Chang

Save() not using SQL DEFAULT Constraint

2009-07-27 Thread William Chang
= obj1, userNameSalutation = Mr, userOccupation = Developer }; obj2.Create(); Thanks, William Chang --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle Project Users group. To post to this group, send