subsonic3

SubSonic Conventions

I would love to have a list of SubSonic conventions. I saw http://bit.ly/3punQZ but it didn't seem complete as of today and it seems wrong. It says "table names should be singular". My understanding is that the convention is plural names for table names. I am also not clear on how to name lookup tables. ...

Object mapping with LINQ and SubSonic

I'm building a small project with SubSonic 3.0.0.3 ActiveRecord and I'm running into an issue I can't seem to get past. Here is the LINQ query: var result = from r in Release.All() let i = Install.All().Count(x => x.ReleaseId == r.Id) where r.ProductId == productId select new ReleaseInfo ...

Specified cast is not valid

I am new to SubSonic so please be gentle :) I am getting "Specified cast is not valid" when performing a save on my object using the SimpleRepository. Unfortunately I have no idea how to track down what is causing the exception. Any help would be much appreciated. ...

Subsonic - can anyone provide an example of using Subsonic SimpleRepository to persist a list/array of objects?

I'm looking for possible ways to persist the following classes. Subsonic SimpleRepository looks like it might work, and people have said it should, when I asked a more general question. But I've been unable to find a single example of how to do this - or at least one I could understand. Can anyone point me to an example, or tell me ...

Subsonic GAC problem

I'm using the latest version of SubSonic (3.0.3). I'm having a problem with building my solution when my assembly is signed. I get an error stating the 'SubSonic.Core' assembly does not have a strong name. Can I not use SubSonic with a signed assembly? ...

How do I bulk Insert using SubSonic?

I have something that looks like this foreach (var user in NewUsers) { var dbUser = new User {FirstName = user.FirstName}; dbUser.Save(); } That is too many inserts into the database. Can I do something like? User.BulkInsert(NewUsers); Thanks. ...

How do I apply SubSonic 3 "SimpleRepository" changes to production systems

Hey all, I've been playing with SubSonic's SimpleRepository, and it's awesome. However, I would like to know if there's an easy way to apply pending changes to a production system. Previously, I used SubSonic 2's "Migrations" via a batch file; when I was ready to move to production, I'd just run all the pending migrations against the p...

Subsonic 3 and table relationships

Hi. I have something like this: Order order = new Order(); Item item = new Item(); order.Items.Add(item); order.Save(); How can I do this with Subsonic? The method that refere to a related table is IQueryable. ...

SubSonic 3 and composite foreign keys

I'm current evaluating SubSonic 3 for use with a legacy DB - IE very little ability to change the current structure. Long story short SubSonic 2 handled our composite foreign keys pretty well - however we're looking for something that will providew linq and all the rest that goes along with SS3. So far I've found that SS3 using both th...

Subsonic 3.0 and linq

I'm playing around with Subsonic 3.0 SimpleRepository and try to get menus and menuitems with one linq query, but the menuitems is allways null Menu public class Menu { public Menu() { MenuId = 0; MenuName = ""; MenuItems = null; } public int MenuId { get; set; } public string MenuName { get;...

.Net RIA Services and SubSonic3 usage examples

I am looking for any examples which ideally cover several possible combinations ( SimpleRepository, ActiveRecord , POCO ) - something similar to Brad Abrams http://blogs.msdn.com/brada/archive/2009/10/27/index-for-business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update.aspx but ORM is SubSonic. ...

subsonic-3 Linq query dose not suport custom class select ?

I am using subsonic 3. in my case: Entity Class : public class Org: IActiveRecord { public string fieldA {get;set;} public string fieldB {get;set;} } and in my linq query: var linqNodes = from o in DB.Orgs select new TreeNode{ id=o.fieldA,text=o.fieldB}; var nodes = linqNodes.ToList(); the TreeNode class is my custom class for ...

Seed Identity Column

Is is possible to set the seed for the identity column of a table using SubSonic? ...

Advice / opinions on using SubSonic 3.0.0.3 without MVC?

I use SubSonic 3.0.0.3 ActiveRecord with ASP.NET MVC and it is very nice. However, we run on IIS 6 and I tend to have quite a few issues with speed. I dont know if this is me being too paranoid but I was thinking of using SubSonic with just a normal ASP.NET WebForms website. Please forgive me for being thick but I'm so used to models and...

Join with composite keys in subsonic

I'm trying to make a join on tables that have composite keys. Example: var turnos = from turno in Turnos.All() join turnoService in TurnoServices.All() on new {turno.pk1, turno.pk2} equals new {turnoService.pk1, turnoService.pk2 } select turno; The above sentence throws an exception: ...

SubSonic 3 - CRUD and Inner Join Queries - Help for a Stupid Programmer.

Please somebody help doing the oldest things on SubSonic.. like CRUD. Please tell how can i do an INNER JOIN / LEFT JOIN relationship queries. thank you very mucg. ...

SubSonic 3 and WebApplication Installation

hey all, my question is whether SubSonic will work in Visual Web Developer 2008 Express Edition, and if it works what is the installation steps. Thanks in Advance Kishh ...

Subsonic3 Where "OR" clause linq query

I'm trying to figure out how to do a querey with a where blah=blah or blah=blah2 with subsonic 3 linq and I can't figure it out. My query at the moment looks like this: var ddFaxNumbers = from f in rf_faxnumber.All().Where(f => f.assigned == null).Where(f => f.location == currentFaxNumberRecordData.location) ...

How I do a select max(field) in Subsonic 3.0?

Yes, there is a method max with 13 overloads, none it's simply the name of the column. Something can post an example in VB.NET? ...

subsonic 3.0.0.3 activeRecord Between

Hi im using subsonic 3.0.0.3 activeRecord but cant seems to figure between ! select * from orders where orderdate between startdate, enddate; have tried IQueryable<orders> myOrders = order.All().Where(x => x.order_date).isBetweenAnd help much appreciated, please make note of version number, and that any answers actually work for that...