subsonic

Is SubSonic dying

主宰稳场 提交于 2019-12-12 07:14:58
问题 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 tekpub and Rob seems to be using nHibernate for all his projects these days. I don't want to focus on learning SubSonic and integrating it into my projects if it's not going to live much longer. So my question is what's happening with subsonic

Subsonic postgreSQL Template

一笑奈何 提交于 2019-12-12 04:29:19
问题 I am new to Subsonic and would like to try Subsonic 3 with postgreSQL. Are there any templates available for postgreSQL? The download includes templates for mySQL and SQL Server only. 回答1: I saw a postgreSQL script in one of the folders in the SubSonic 3.0 Templates project, but I don't see a postgreSQL ttinclude file yet. I imagine you can watch that space for one to show up, or contribute one yourself. 回答2: It does not support postgres yet. 来源: https://stackoverflow.com/questions/1130797

subsonic unit testing bug?

痞子三分冷 提交于 2019-12-12 04:00:48
问题 I'm currently using Subsonic 3.03 Active Record repository. I have setup a Test connection string to utilise the dummy internal storage. [TestInitialize] public void TestInitialize() { List<ServiceJob> jobs = new List<ServiceJob>() { new ServiceJob() { ServiceJobID = 1 }, new ServiceJob() { ServiceJobID = 2 } }; ServiceJob.Setup(jobs); } [TestMethod] public void TestMethod() { ServiceJob job = ServiceJob.SingleOrDefault(s => s.ServiceJobID == 2); Assert.AreEqual(2, job.ServiceJobID); } I'm

Subsonic Deeploads: Is This Supported?

£可爱£侵袭症+ 提交于 2019-12-12 03:47:18
问题 It could very well be that I'm just missing the correct vernacular in this space, but I'm looking for a particular piece of functionality in SubSonic. In NetTiers it was called a "DeepLoad". A deep load runs to the database and fetches many objects (ie. fetch this OrderDetail and all of it's LineItems) in one database call. Again, I want to run to the data store once an build up a potentially dense object graph or related items populated by the data store. How do I do this in SubSonic and

Subsonic foreign key returning collection?

ⅰ亾dé卋堺 提交于 2019-12-12 01:34:37
问题 I'm just writing my first "Hello World" program using Subsonic, for which I've thrown together a simple little Customer/Invoice/InvoiceItem/Product database. The connection was successfully made to the DB, and it generated all the right ActiveRecord classes. But for some reason, the Invoice class has a property called Customers , which returns a collection of Customer objects, even though the Invoice table has a CustomerID field which has a foreign key to the Customer table. I would have

SubSonic 2.x StoredProcedure parameter data types?

别说谁变了你拦得住时间么 提交于 2019-12-12 01:30:34
问题 From what I can see, SubSonic 2.x stored procedure parameter data types can only be of type System.Data.DbType. Is there a quick way to add System.Data.SqlDbType so we can use System.Data.SqlDbType.Structured to pass tables - ultimately to TVP's? In this particular project, all data caller functions are accessed through StoredProcedures.cs. If we switched to 3.x, does it support SqlDbType.Structured, and if so, is it a seamless integration to retain the current StoredProcedures.cs methods?

Subsonic 3: Invalid cast from 'System.Byte' to 'System.Byte[]'

早过忘川 提交于 2019-12-12 01:17:57
问题 I'm trying to use Subsonic 3.0 but with every query I try it gives me this error: "Invalid cast from 'System.Byte' to 'System.Byte[]'." I've tried using linq and activerecord on several different tables and always having this problem. Just to make sure, here is a code snipped that throws the error: LiteralContent.Text = DB.Teksten.SingleOrDefault(t => t.ID == Convert.ToInt32(TextID)).Tekst; Also try to debug into the error but couldn't find the exact source of the error while stepping through

Subsonic : Object of type 'System.UInt64' cannot be converted to type 'System.Int64'

我与影子孤独终老i 提交于 2019-12-11 22:20:22
问题 I just hooked up Subsonic to MySql for the first time. Everything seems to be cool except a simple: wp_1_post.All().ToList(); throws: Object of type 'System.UInt64' cannot be converted to type 'System.Int64'. It looks like the ID column in the wp_1_posts table is an unsigned bigint, just not sure what to do about it... 回答1: In MySQL.tt there is a check (GetSysType) which decides which type goes to which db type. At the moment we don't have a way to sense if something is unsigned (cause I don

ASP.NET Search on multiple parameters

北慕城南 提交于 2019-12-11 18:11:41
问题 I am trying to display the results of a search on a gridview. I want the search to show the results for both last and first name. I am using ASP.NET with Subsonic and can't figure out how to modify the statemnt below. I am guessing it needs a wildcard somewhere? Name: <asp:TextBox ID="txtSearchName" runat="server"></asp:TextBox> GridView1.DataSource = new Select(PastAwardName.Schema.TableName + ".*", PastAwardType.Schema.TableName + ".*") .From(PastAwardName.Schema) .InnerJoin(PastAwardType

SubSonic Oracle and properties case

风流意气都作罢 提交于 2019-12-11 16:42:13
问题 I don´t know the answer for this question. With MSSQLSERVER and MYSQL the next configuration runs very well but with Oracle don´t. With Oracle appear like this Cargo c = new Cargo(); c.Idcargo = 1; With MSSQL AND MYSQL c.IdCargo = 1; How to configure the connection with Oracle to appear "IdCargo" and not "Idcargo". ?? THE CONFIGURATION: <providers> <clear/> <add name="oracle" type="SubSonic.oracleDataProvider, SubSonic" connectionStringName="oracle" fixDatabaseObjectCasing="true"