C# - Subsonic 3 - Namespace Hidden
Apr 17, 2009
Followed Rob's webcast, did as he did, watched T4 generate the code, went to use the new namespace and oh. No namespace. I can see the namespace Test.Data in each of the generated .cs files, the tt files are included in the project as is subsonic.dll, there are no errors (I managed to get rid of a warning for the duplicate directives) but I just can't see the namespace. To test it out I am building a simple vb.net console application so wondering if there is a conflict there. Using v2.2 against the same db works fine.
View 1 Replies
ADVERTISEMENT
Mar 13, 2012
I want to make 5 attachment options in that 4 out of the 5 are hidden.but when he clicks "more attachment" link it will show the other 4.Im using ASP.NET with VB?
View 2 Replies
Mar 17, 2011
I need to read an xml document from a database record into an XDocument object in order for it to be deserialized. So that the deserialization will work, I need to apply a specific namespace to each of the level 1 elements. So XML looks a bit like this:
[Code]...
How do I prevent the blank/empty namespace being added to each child element of the element to which the required namespace has been applied?
View 1 Replies
Oct 4, 2010
I'm quite comfortable with VB and have a very large project i need to do. I've come across SubSonic and it looks awesome. I am not clear if i can use it in VB. I've seen a a couple of posts that suggest they did but on the site it specifically shows C#.Can I use SubSonic with VB.NET?
View 1 Replies
Jan 29, 2012
Imports System.Windows.Forms
ERROR : 'Namespace' can occur only at file or namespace level
View 5 Replies
Apr 10, 2010
The type or namespace name 'Messaging' does not exist in the namespace 'System' (are you missing an assembly reference?)
View 2 Replies
May 6, 2009
I am trying to get subsonic to run work in a webservice I am not sure how to return the data. I only get the word Object in my results when It return anything instead of values. What am I missing?
<WebMethod(Description:="Method to retrieveCptCode subsonic List")> _
Public Function GetSubCptCodes() As CPTCodeCollection
Dim coll As CPTCodeCollection = New CPTCodeCollection()
Dim qry As Query = New Query(CPTCode.Schema)
coll.LoadAndCloseReader(qry.ExecuteReader())
Return coll
End Function
View 1 Replies
Jul 17, 2009
[code] will both give the error "The method 'CompareString' is not supported". If I make the same call searching for an integer (ID field) it works fine. .SingleOrDefault (Function(x As Account) x.Id = 12)So interger matching is fine but strings don't work Is this a problem with the VB.net templates?
View 3 Replies
May 3, 2011
I am trying to save changes to a record, however I am getting the error
[code]...
View 1 Replies
May 18, 2009
I am using Subonic in a VB.net application for the first time (I have used it succesfully in a WebSite project plenty of times). I followed the 2nd part of the 'Getting Started' video to actually generate the DAL source files as opposed to the build provider method and everything APPEARS to have gone like expected. However, nothing I do will get my generated namespace to appear. I feel that it has to with the fact that I am running my Web Application in VB.Net and Subsonic generates in C#.
Here is the process I followed:
1) I created a blank Web Application Project in Visual Studio
2) I configured the web.config to have the necessary parts, connection strings, etc.
3) I ran subcommander and it generated all the classes I needed into a folder called DAL.
4) I built the Web Application Project
5) I opened up a code behind, typed 'Imports' and I do not see the namespace that was generated.
I have even opened the actual Subsonic Source files and seen that there is a namespace statement for the generated namespace I configured. I tried briefly to move the subsonic files to a separate class library project, compile the .dll and use that in my project, but it still did not work.
View 2 Replies
Nov 16, 2011
This class is located in the namespace Acme.Infrastructure.Interface.A class with the same name EventArgs exists in the System namespace.In another project in my solution I have a class Acme.BusinessModules.MyModule.MyClass.When attempting to use the EventArgs class I have to fully qualify the class name or the compiler thinks I am using the System.EventArgs class.My understanding of namespace resolution was that the compiler would first look for the class in the current namespace, and then its parents. It seems that the compiler checks in System before it checks in sibling namespaces. Is it correct that System is checked before the sibling? Or is this behaviour caused by other issues (Imports order?)?
View 1 Replies
Nov 10, 2009
I have an application I am converting over from vb6 to vb.net 2.0/3.5. Using Subsonic 2.2 and the vb.net Interop Toolkit 2005. Cannot seem to get the .net form using subsonic to work inside the interop environment.It keeps saying it cannot find the subsonic service provider in the app.config. But I know it is there. Has anyone used these two toolkits together successfully? Will subsonic even work inside the interop environment in that way?
View 1 Replies
Jul 24, 2009
I have trouble using the transactionscope on SQLite, i am using the following code. Changes are still commited to the database while i don't call the ts.Complete() function.
Using ts As New System.Transactions.TransactionScope()
Using sharedConnectionScope As New SubSonic.SharedDbConnectionScope()
' Do your individual saves here'
[Code].....
View 2 Replies
May 18, 2010
I moved from SubSonic 2.x to 3.0 and noticed that all my classes are combined into the ActiveRecord.vb(cs) file. Is there a way to have my classes generated individually in a separate folder (DAL) as I was doing with 2.x?
View 2 Replies
Mar 3, 2009
I need to throw together a quick CRUD asp.net site, but this may become a bigger application down the road. I have some experience with SubSonic, but it has been so long since I did a project with it I have to relearn it. I am also considering using Dynamic Data.
View 5 Replies
Dec 10, 2009
I'm trying to use Subsonic 3.0.0.3 with an existing web site created in vb.net. I've added a reference to SubSonic.Core.dll and added the ActiveRecord tt/ttinclude files. I also added a contextmenu entry to run the t4 templates using instructions I found here.Whenever I try to run any of the tt files, I receive the following exception. Does this have something to do with me using a web site as opposed to a web application?
f:Documents and SettingsdbollardLocal SettingsTempSQLServer.ttinclude(85,15) : warning CS0219: Compiling transformation: The variable 'parameters' is assigned but its value is never used
ActiveRecord.tt(0,0) : error : Running transformation: System.InvalidCastException: Unable to cast object of type 'Microsoft.VisualStudio.TextTemplating.CommandLine.CommandLineHost' to type 'System.IServiceProvider'.
[Code]...
View 1 Replies
Sep 15, 2009
i download subsonic 3 today (subsonic 3 preview 2) but this don't work in vb project.i think because .tt file (for generation) is C# template so this don't generate vb code.
View 1 Replies
Dec 8, 2011
I am getting this error,here is my code.
Public Class Sample2
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)Handles Button1.Click
[Code]....
View 4 Replies
Feb 22, 2010
Subsonic 2.2 is throwing the error
subsonic Invalid cast from System.Int32 to System.Byte[]
When I do the following
If template.Content Is Nothing Then
MsgBox("Blank Document")
Else
MsgBox("Document Present")
End If
"template" is a SubSonic object of which it's "content" field is of type Byte()
View 1 Replies
Aug 27, 2009
write SubSonic 3 Step By Step WinForm App VB.Net: Installation,Setup And Generating.
View 2 Replies
Feb 3, 2011
As I say, I've got an application which I'll refer to as "AppName" (note the upper case 'A' and 'N') which, for example, attempts to reference "My.Application.Info.ProductName". Adding a breakpoint and putting a QuickWatch on that call shows the error:
[Code]...
View 1 Replies
Nov 9, 2009
I am using VS2008 and creating forms. By default, the underscore of the character in a textbox when using an ampersand is not shown when I run the application. ex. "&Goto Here" is not underlining the G until I press the ALT key.Is there a way to have this underline the text that I put an ampersand in front of when the form/application starts instead of having to have the user press the alt key?
View 1 Replies
Apr 6, 2011
I have a little trouble with my code. You'll see. I'm using the developer express ridControl tool. I have a Gridview in it with a table bound to it. The control lets you filter your info. I have a Select all button that works, the only problem is that if you filter the data and press the select button it selects all the rows, not only the ones that are actually shown on the grid, and I need only the shown ones.
View 1 Replies
Jun 27, 2012
I have a grid column, of which, row X is hidden. I want to pick the values of each column's row x, perform some calculations at client side and display it in row y(through client side code). I am not able to pick values from hidden field in client side. Is there a way I can put those values in a client side array using javascript code, and use it for my calculations. Also when page posts back, the array should get updated with latest values.
View 2 Replies
May 15, 2011
I'm trying to find out a way to where you can tell if an HTMLobject is hidden or not. The code for the hidden object is in the document, but how do I tell if its being hidden in the browser or not?
View 7 Replies
Mar 2, 2012
I'm trying to find out a way to where you can tell if an HTMLobject is hidden or not. The code for thehidden object is in the document, but how do I tell if its being hidden in the browser or not?The HTML code is here.
<div><spanid="ctl00_cphRoblox_UserNameAlreadyTaken"style="color:Red;">This username is already taken!</span><spanid="ctl00_cphRoblox_SuggestedUserName"style="color:Red;">This username is already taken!</span></div></div>
[code].....
View 4 Replies
Jun 8, 2011
I'm trying to run a console window hidden while using CreateProcess(I can't use the ProcessStartInfo class because I have to run it with some other special settings)I have tried to use the CREATE_NO_WINDOWS flag, but somehow, the console still pops up. This is the code I have:Dim ProzessInfo = New Process_InformationDim StartInfo = New Startup_Information, PS = New Security_Flags, TS = New Security_FlagsIf CreateProcess(Nothing, target, PS, TS, False, PROCESS_CREATION_FLAG.CREATE_NO_WINDOW,othing, Nothing, StartInfo, ProzessInfo) = 0 Then MsgBox("Couln't st
View 1 Replies
Jun 5, 2012
I'm using Windows Task Scheduler Wrapper to schedule the tasks (basically to launch an exe console every two minutes or so) in a .net desktop application.However, I don't want it to pop-up the console every 5 minutes or even once. How do I hide it? I understand if I was using vb.net to launch the exe, there are several things I could have done. However, I am using windows task scheduler to launch it.
View 1 Replies
Jan 25, 2012
I have a new application, and for some unknown reason, it's hidden behind other opened applications. It is shown when launched on desktop only if desktop is empty. How do I force my application to be in front of desktop ?
View 1 Replies
Aug 24, 2011
on localhost its fine but on the webhost it gets hidden I can't figure it out.
This is the url where its hidden: EDIT: Removed url...
View 2 Replies