subsonic

Subsonic ORM experience

谁都会走 提交于 2019-12-20 15:22:19
问题 I'm looking for new ORM for a important project, im used to nHibernate with ActiveRecord and I already have a very bad experiencia with EF4, performance and crashing GUI. So search on web I found the Subsonic, i liked what I read in the documentation. So, I would like to know if anyone already used the Subsonic and if the experience was good. 回答1: Hmm ... well ... how should I put it.... I am currently (as in right now) expending effort to replace SubSonic with PetaPoco. I suppose that says

subsonic 3 scaffolding

强颜欢笑 提交于 2019-12-20 02:52:09
问题 Are there the asp.net scaffolding controls (ex: < subsonic:QuickTable />) still available in subsonic 3? 回答1: No - we did that the best we could with 2.2 :) 回答2: Not Subsonic related, but Dynamic Data is something you might want to look into. Dynamic Data Information 回答3: There is no more scaffolding feature anymore. Subcommander also is abandoned. 来源: https://stackoverflow.com/questions/1082667/subsonic-3-scaffolding

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

梦想的初衷 提交于 2019-12-19 12:01:50
问题 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 how I could use Subsonic to map the following classes to a database? Note that I haven't designed the database - I'm hoping Subsonic will do that for me , lazy sod

SubSonic 3 and MySQL, removing underscore from column name in CleanUp() method causes exceptions when using property in linq-query

扶醉桌前 提交于 2019-12-19 11:58:18
问题 I've run into a problem when using SubSonic 3(.0.0.3) ActiveRecord with MySQL. Since MySQL doesn't allow you to use uppercase letters in table or column names (or rather disregards it if you do) I decided to separate words using underscores, e.g. entity_id, and then use the CleanUp() method to add title casing and remove the underscores. A friend wrote a ToTitleCase(string s) method that looks like this: string ToTitleCase(string s) { CultureInfo cultureInfo = Thread.CurrentThread

.NET ORM solution with class auto-generation: Subsonic, Castle AR, …?

若如初见. 提交于 2019-12-19 02:06:11
问题 I used to work with a custom data mapping library, and curently I'm trying to switch to a more widespread ORM solution. After some experimentation, I refined my requirements to the following: able to generate usable classes from database schema (SQL Server support is enough), support for ActiveRecord pattern, programmaticaly configurable (via code or attributes, no HBM files), free. Could you please recommend one? So far I have tried: Subsonic 3.0 The one I currently like most, as it feels

How to tell if user has modified data using bindingsource?

纵然是瞬间 提交于 2019-12-18 22:24:51
问题 I have a DataGridView bound to a bindingsource which is bound to a List<T> . 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", bindingSource, "Title"); I want to be able to detect if the user has modified any data in the controls when they click the close button, so I can prompt them to say "You have un-saved work. Do you want to Save?" How do I detect this on the binding source

How to tell if user has modified data using bindingsource?

我是研究僧i 提交于 2019-12-18 22:24:41
问题 I have a DataGridView bound to a bindingsource which is bound to a List<T> . 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", bindingSource, "Title"); I want to be able to detect if the user has modified any data in the controls when they click the close button, so I can prompt them to say "You have un-saved work. Do you want to Save?" How do I detect this on the binding source

Relationships and Lazy Loading in SubSonic 3.0

做~自己de王妃 提交于 2019-12-17 19:46:08
问题 I'm playing around with SubSonic 3.0 at the moment, and it looks really straight-forward (except that I still have to decide between SimpleRepository and ActiveRecord, but that's another story). However, as the documentation is a bit sparse, I am not sure if it supports foreign-relationships and lazy-loading. Essentially, I have a class posting: public class Posting { [SubSonicPrimaryKey] public Guid InternalId { get; set; } public string Title { get; set; } public string Body { get; set; }

Subsonic 3 - SimpleRepository

∥☆過路亽.° 提交于 2019-12-17 19:06:44
问题 I am playing around with Subsonic 3's simple repository and am hitting walls in understanding how to deal with foreign keys... If I have a product object containing int ID; string name; string description; Category category; int categoryID (this one is just to persist the product's categoryID to the DB) and a category object containing int ID; string name; How can I use the repository to bring back a list of all products with their category object instantiated? At the moment I have written a

Adding DataAnnontations to Generated Partial Classes

蹲街弑〆低调 提交于 2019-12-17 18:24:41
问题 I have a Subsonic3 Active Record generated partial User class which I've extended on with some methods in a separate partial class. I would like to know if it is possible to add Data Annotations to the member properties on one partial class where it's declared on the other Subsonic Generated one I tried this. public partial class User { [DataType(DataType.EmailAddress, ErrorMessage = "Please enter an email address")] public string Email { get; set; } ... } That examples gives the "Member is