Questions tagged [subsonic]

SubSonic is A Super High-fidelity Batman Utility Belt that works up your Data Access (using Linq in 3.0), throws in some much-needed utility functions, and generally speeds along your dev cycle.

SubSonic 3.0 is the latest version of SubSonic and was released in June of 2009. Work on SubSonic 3.0 lasted close to a year, and revolved mostly around supporting LINQ.

The focus of SubSonic 3.0 is to provide tools, not guidance or an overall mindset/approach. There are a number of things in SubSonic that allow you to move faster while applying whatever patterning floats your boat. We're not as complete as NHibernate, but you'll work faster with less concept count. We're not as deep as Linq to SQL, but you can use our stuff on most databases.

1195 questions
186
votes
14 answers

A circular reference was detected while serializing an object of type 'SubSonic.Schema .DatabaseColumn'.

I am trying to do a simple JSON return but I am having issues I have the following below. public JsonResult GetEventData() { var data = Event.Find(x => x.ID != 0); return Json(data); } I get a HTTP 500 with the exception as shown in the…
Jon
  • 38,814
  • 81
  • 233
  • 382
50
votes
4 answers

jQuery Autocomplete and ASP.NET

I searched all over this site and the web for a good and simple example of autocomplete using jQuery and ASP.NET. I wanted to expose the data used by autocomplete with a webservice (and will probably do that next). In the meantime, I got this…
djuth
  • 985
  • 1
  • 8
  • 9
16
votes
2 answers

How Do I Load an Assembly and All of its Dependencies at Runtime in C# for Reflection?

I'm writing a utility for myself, partly as an exercise in learning C# Reflection and partly because I actually want the resulting tool for my own use. What I'm after is basically pointing the application at an assembly and choosing a given class…
J Wynia
  • 10,464
  • 4
  • 40
  • 38
13
votes
5 answers

Could not find server 'dbo' in sys.servers

I have a lot of services which query the database. All of them work fine but one service calling a stored procedure gives me following error: Could not find server 'dbo' in sys.servers. Verify that the correct server name was specified. If …
Lieven Cardoen
  • 25,140
  • 52
  • 153
  • 244
13
votes
3 answers

Which ORM to use?

I'm developing an application which will have these classes: class Shortcut { public string Name { get; } public IList Triggers { get; } public IList Actions { get; } } class Trigger { public string Name { get;…
Paya
  • 5,124
  • 4
  • 45
  • 71
13
votes
2 answers

SQL Views in SubSonic 3.0

Is there any way that I can access my SQL views in SubSonic 3.0? The code generation seems to skip views altogether
Karl
  • 1,257
  • 4
  • 14
  • 16
10
votes
1 answer

Cannot serialize member 'XXX' of type System.Nullable`1[System.Decimal]. XmlAttribute/XmlText cannot be used to encode complex types

I'm getting the following error when using a web service: Cannot serialize member 'XXX' of type System.Nullable`1[System.Decimal]. XmlAttribute/XmlText cannot be used to encode complex types. I understand the error and found a solution on this…
Boomerang
  • 782
  • 2
  • 11
  • 20
10
votes
4 answers

Is SubSonic dying

I'm real interested in using SubSonic, I've downloaded it and I'm enjoying it so far, but looking at the activity on github and googlegroups it doesn't seem to be very active and looks a lot like a project that's dying. There's no videos about it on…
9
votes
2 answers

Are there any tips/tricks about using Subsonic with Asp.Net MVC Framework?

Is there anyone using Subsonic with asp.net mvc framework? If so, can you tell us something about your experience. Are there tips and tricks that can be shared?
spinodal
  • 4,007
  • 3
  • 29
  • 38
8
votes
3 answers

Generic contraints on derived classes

I have class A: public class ClassA Class B derives from A: public class ClassB : ClassA Class C derives from class B: public class ClassC : ClassB Now I have a generic method with constraints public static T Method() where T :…
ptutt
  • 1,338
  • 3
  • 18
  • 35
8
votes
4 answers

What is so great about ORM?

So I'm having a head against the wall moment and hoping somebody can come help either remove the wall or stop my head from moving!! Over the last 3/4 weeks I've been investigating ORM's in readyness for a new project. The ORM must map to an…
CResults
  • 5,100
  • 1
  • 22
  • 28
8
votes
12 answers

How to tell if user has modified data using bindingsource?

I have a DataGridView bound to a bindingsource which is bound to a List. The user clicks a row that goes to a form with textboxes, etc. The textboxes are databound like so: if (txtID.DataBindings.Count == 0) txtID.DataBindings.Add("Text",…
Jon
  • 38,814
  • 81
  • 233
  • 382
8
votes
4 answers

Subsonic 3.0.0.3 not generating parameters for stored procedures

I have a SQL Server 2008 database with a bunch of stored procedures. When I use the ActiveRecord Template provided with Subsonic 3.0.0.3, it generates methods for all of my stored procedures, but they do not have any parameters. I am dbo on the…
Mike Stonis
  • 2,184
  • 14
  • 24
7
votes
3 answers

Using transactions with subsonic

In my web application I've to keep audit of the user actions. So whenever user takes an action I update the object on which action is taken and keep audit trail of that action. Now If I first modify the object and then update audit trail but the…
TheVillageIdiot
  • 40,053
  • 20
  • 133
  • 188
7
votes
3 answers

SubSonic ASP.NET MVC sample in Visual Web Developer Express

In Visual Web Developer Express 2008 the SubSonic ASP.NET MVC template doesn't seem to work with a new database I added. I removed the Chinook Database and created my own one. I understand the the .tt files in the Models folder are used to generate…
SamWM
  • 5,196
  • 12
  • 56
  • 85
1
2 3
79 80