subsonic

Subsonic 3 not generating classes

こ雲淡風輕ζ 提交于 2019-12-25 09:40:48
问题 I followed the 3 step procedure 20 times on 3 different sytems under all possible conditions and no matter what I do it won't generate the classes. I keep getting the following error: Loading the include file 'SQLServer.ttinclude' returned a null or empty string. The transformation will not be run. Any ideas? 回答1: I have tried all the solution I found on google but no luck. So I decided to dig into this issue. As you can see, the error tell that generator can not load the include file

How can i tell SubSonic 2 to use a different .config file?

风流意气都作罢 提交于 2019-12-25 08:41:06
问题 I'm using SubSonic 2 from within a project and I'd like to specify a different .config file from the default App.config. How can I tell SubSonic to use a specific config file? 回答1: You can't - SubSonic works from Provider settings that are set for the executing environment. You could, if you wanted, use a connectionStrings.config and put that somewhere else, but SubSonic uses ConfigurationManager to open up the app's config and find it's goodies. 回答2: It appears that you can do this by

Has anyone used any .Net code generation frameworks in Mono? (Subsonic, .netTiers, etc..)

主宰稳场 提交于 2019-12-25 04:34:11
问题 Mono appears to have really come a log way since the last time I really used it. I'm interested in doing some ASP.Net development using Mono. I have used .netTiers/CodeSmith at work and really enjoy the speed with which code generation gives you a clean working data access layer. The question is has anybody used any code generation with Mono? I am open to learning something like SubSonic or NHibernate if those work better with Mono. Thanks in advance for any help. 回答1: I have used subsonic

Has anyone used any .Net code generation frameworks in Mono? (Subsonic, .netTiers, etc..)

荒凉一梦 提交于 2019-12-25 04:34:05
问题 Mono appears to have really come a log way since the last time I really used it. I'm interested in doing some ASP.Net development using Mono. I have used .netTiers/CodeSmith at work and really enjoy the speed with which code generation gives you a clean working data access layer. The question is has anybody used any code generation with Mono? I am open to learning something like SubSonic or NHibernate if those work better with Mono. Thanks in advance for any help. 回答1: I have used subsonic

Search Database by First and Last Name

我与影子孤独终老i 提交于 2019-12-25 03:57:11
问题 I am using ASP.NET with C# and subsonic. I am trying to setup a search on a text field by first and last name. First or Last Name: <asp:TextBox ID="txtSearchName" runat="server"></asp:TextBox> <asp:linkButton runat="server" Text="Send" onclick="btnSubmit_Click" /> <asp:GridView border="0" cellpadding="3" cellspacing="3" ShowHeader="True" allowsorting="true" ID="GridView1" runat="server" AutoGenerateColumns="false" Visible="false" AllowPaging="True" PageSize="10" PagerStyle-Mode="NumericPages"

SubSonic 3.0 - Medium Trust

纵然是瞬间 提交于 2019-12-25 02:47:07
问题 In June 2009 SubSonic 3.0 was released. Because I'm looking for an ORM solution for my website which is able to work in a medium trust environment this looks an option. From searching this site I noted that SubSonic 2.0 is able to work in a medium trust environment. With respect to 3.0 I could not find this on the web. Does anyone has any experience yet with 3.0 in a medium trust environment (at an ISP)? And what are the do and don't issues. I tested this briefly locally but security

SQLite and sub-sonic

谁说胖子不能爱 提交于 2019-12-24 23:14:33
问题 Does Subsonic supports SQLite, if so can subsonic work with Win7 Phone ? 回答1: SubSonic Supports sqlite out of the box - windows phone 7 was never tested nor tried as far as I know - would be an interesting experiment! 来源: https://stackoverflow.com/questions/3652066/sqlite-and-sub-sonic

populating a datagridview combobox column with subsonic & vb.net

Deadly 提交于 2019-12-24 22:50:50
问题 Like the title says, I'm trying to populate a combo box column in a datagridview. Here's what i have so far: Dim lc As System.Web.UI.WebControls.ListItemCollection = _ DataAccess.Part.GetListItems() dgvcboPart.DataSource = lc ' This is a standalone combo box and it works ok cboTest.DataSource = lc Any suggestions as to what I'm missing ? Thanks Tony W 回答1: I first suggest you bind your Collection to a BindingSource and then add the BindingSource to the DataGridView (so you know the position)

Subsonic 3/ASP.net MVC issue trying to override class column properties

那年仲夏 提交于 2019-12-24 20:26:31
问题 I am using Subsonic 3 (T4 template) to generate the models for my mvc app. However the default template does not allow for nullable columns, so when I go to save the record it errors out if a nullable datetime column is blank. (See this post...) Question: What is the best practice to handle this? Option 1: Change the template to check if it is a nullable column and decorate the datatype with ? That would take me out of sync with any changes Rob makes to his templates which I might want Option

Adding Column Using Subsonic 3.0.0.5 Migration

本秂侑毒 提交于 2019-12-24 19:54:18
问题 I want to know that How to Insert New Columns to an existing database Table using Subsonic 3.0.0.5 MIGRATIONS. Basically I want to alter an existing table in MS SqlServer database and add three more columns into it. Please tell me How I will be able to do it Regards, Naveed Khan 回答1: Just change your object and the column will be added/updated whatever. So if you have an object called "Post" and add a property, it will be added as a column in the DB. See this video... http://subsonicproject