Hi.
Two questions:
1. Is there a LINQ to Caste active record?
2. What is the best way to write simple queries like »...where name like '%john%' and age>10«
Thanks
Ivan Bolčina
SOFTWARE DEVELOPMENT
MANAGER
tel: +386 51 680 415
![]()
Hi.
Two questions:
1. Is there a LINQ to Caste active record?
2. What is the best way to write simple queries like »...where name like '%john%' and age>10«
--
You received this message because you are subscribed to the Google Groups "Castle Project Development List" group.
To post to this group, send email to castle-pro...@googlegroups.com.
To unsubscribe from this group, send email to castle-project-d...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/castle-project-devel?hl=en.
Say, is there a way to specify this:
Blog : Posts
Load a blog by id, but leave posts empty. On save don't save posts.
But, if there is explicit call, lets say blog.LoadPosts(), then posts would be loaded and therefore a relation would be »normal«.
The reason is that I found that there are so many sqls executing – it is logical, because objects are in relation, but i would like to be more in control (n-tier situation). Lazy is not good for n-tier situations.
Right now I have this configured like this.
Blog has a array of posts(POSTS), but it is NOT attributesied as HasMany.
Post has a BLOG property, but it is also NOT attibutiesed as BelongsTo
When I need to send those to client, i manually fill necessary details.
But is there a way to run-time attributise an element, say array of posts in a blog, and then load it using this run-time attributisation?
Hope you understand this.
Br,ivan
Hi.
I have written 3-tier application,where server loads/saves stuff, and for DTOs are used AR.
Since on client, I dont use save/load/etc, they act as simple POCO.
I think that whats great about AR is that there is no mapping, but having separate DTO is another form of mapping.
Where can I learn more about AutoMapper?
BR,ivan