|
From: <pa...@us...> - 2011-07-23 20:10:32
|
Revision: 5992
http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5992&view=rev
Author: patearl
Date: 2011-07-23 20:10:24 +0000 (Sat, 23 Jul 2011)
Log Message:
-----------
NHibernate.Test.VisualBasic: Test assembly for VB code. Not yet included in automatic build. Also includes first failing test (NH2545).
Modified Paths:
--------------
trunk/nhibernate/src/NHibernate.Everything.sln
trunk/nhibernate/src/NHibernate.sln
Added Paths:
-----------
trunk/nhibernate/src/NHibernate.Test.VisualBasic/
trunk/nhibernate/src/NHibernate.Test.VisualBasic/Issues/
trunk/nhibernate/src/NHibernate.Test.VisualBasic/Issues/IssueTestCase.vb
trunk/nhibernate/src/NHibernate.Test.VisualBasic/Issues/NH2545/
trunk/nhibernate/src/NHibernate.Test.VisualBasic/Issues/NH2545/Entity.vb
trunk/nhibernate/src/NHibernate.Test.VisualBasic/Issues/NH2545/Fixture.vb
trunk/nhibernate/src/NHibernate.Test.VisualBasic/Issues/NH2545/Issues.NH2545.Mappings.hbm.xml
trunk/nhibernate/src/NHibernate.Test.VisualBasic/My Project/
trunk/nhibernate/src/NHibernate.Test.VisualBasic/My Project/Application.Designer.vb
trunk/nhibernate/src/NHibernate.Test.VisualBasic/My Project/Application.myapp
trunk/nhibernate/src/NHibernate.Test.VisualBasic/My Project/AssemblyInfo.vb
trunk/nhibernate/src/NHibernate.Test.VisualBasic/My Project/Resources.Designer.vb
trunk/nhibernate/src/NHibernate.Test.VisualBasic/My Project/Resources.resx
trunk/nhibernate/src/NHibernate.Test.VisualBasic/My Project/Settings.Designer.vb
trunk/nhibernate/src/NHibernate.Test.VisualBasic/My Project/Settings.settings
trunk/nhibernate/src/NHibernate.Test.VisualBasic/NHibernate.Test.VisualBasic.vbproj
Modified: trunk/nhibernate/src/NHibernate.Everything.sln
===================================================================
--- trunk/nhibernate/src/NHibernate.Everything.sln 2011-07-23 19:31:58 UTC (rev 5991)
+++ trunk/nhibernate/src/NHibernate.Everything.sln 2011-07-23 20:10:24 UTC (rev 5992)
@@ -96,6 +96,8 @@
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NHibernate.Tool.HbmXsd", "NHibernate.Tool.HbmXsd\NHibernate.Tool.HbmXsd.csproj", "{446E148D-A9D5-4D7D-A706-BEDD45B2BC7D}"
EndProject
+Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "NHibernate.Test.VisualBasic", "NHibernate.Test.VisualBasic\NHibernate.Test.VisualBasic.vbproj", "{7C2EF610-BCA0-4D1F-898A-DE9908E4970C}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|.NET = Debug|.NET
@@ -176,6 +178,16 @@
{446E148D-A9D5-4D7D-A706-BEDD45B2BC7D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{446E148D-A9D5-4D7D-A706-BEDD45B2BC7D}.Release|Any CPU.Build.0 = Release|Any CPU
{446E148D-A9D5-4D7D-A706-BEDD45B2BC7D}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {7C2EF610-BCA0-4D1F-898A-DE9908E4970C}.Debug|.NET.ActiveCfg = Debug|Any CPU
+ {7C2EF610-BCA0-4D1F-898A-DE9908E4970C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {7C2EF610-BCA0-4D1F-898A-DE9908E4970C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {7C2EF610-BCA0-4D1F-898A-DE9908E4970C}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
+ {7C2EF610-BCA0-4D1F-898A-DE9908E4970C}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+ {7C2EF610-BCA0-4D1F-898A-DE9908E4970C}.Release|.NET.ActiveCfg = Release|Any CPU
+ {7C2EF610-BCA0-4D1F-898A-DE9908E4970C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {7C2EF610-BCA0-4D1F-898A-DE9908E4970C}.Release|Any CPU.Build.0 = Release|Any CPU
+ {7C2EF610-BCA0-4D1F-898A-DE9908E4970C}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {7C2EF610-BCA0-4D1F-898A-DE9908E4970C}.Release|Mixed Platforms.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -190,6 +202,7 @@
{5909BFE7-93CF-4E5F-BE22-6293368AF01D} = {094F74CD-2DD7-496F-BC48-A6D357BF33FD}
{5C649B55-1B3F-4C38-9998-1B043E94A244} = {094F74CD-2DD7-496F-BC48-A6D357BF33FD}
{7AEE5B37-C552-4E59-9B6F-88755BCB5070} = {094F74CD-2DD7-496F-BC48-A6D357BF33FD}
+ {7C2EF610-BCA0-4D1F-898A-DE9908E4970C} = {094F74CD-2DD7-496F-BC48-A6D357BF33FD}
{446E148D-A9D5-4D7D-A706-BEDD45B2BC7D} = {92509065-DAEA-4457-8300-C7B64CD0E9F4}
{4C251E3E-6EA1-4A51-BBCB-F9C42AE55344} = {C91E7018-3C67-4830-963A-C388C75E1BD5}
{58CE4584-31B9-4E74-A7FB-5D40BFAD0876} = {C91E7018-3C67-4830-963A-C388C75E1BD5}
Property changes on: trunk/nhibernate/src/NHibernate.Test.VisualBasic
___________________________________________________________________
Added: svn:ignore
+ [Bb]in
obj
[Dd]ebug
[Rr]elease
*.user
*.aps
*.eto
Added: trunk/nhibernate/src/NHibernate.Test.VisualBasic/Issues/IssueTestCase.vb
===================================================================
--- trunk/nhibernate/src/NHibernate.Test.VisualBasic/Issues/IssueTestCase.vb (rev 0)
+++ trunk/nhibernate/src/NHibernate.Test.VisualBasic/Issues/IssueTestCase.vb 2011-07-23 20:10:24 UTC (rev 5992)
@@ -0,0 +1,18 @@
+Imports NHibernate.Test.NHSpecificTest
+
+Public Class IssueTestCase
+ Inherits BugTestCase
+
+ Protected Overrides ReadOnly Property MappingsAssembly As String
+ Get
+ Return "NHibernate.Test.VisualBasic"
+ End Get
+ End Property
+
+ Protected Overrides ReadOnly Property Mappings As IList
+ Get
+ Return New String() {"Issues." + BugNumber + ".Mappings.hbm.xml"}
+ End Get
+ End Property
+
+End Class
Added: trunk/nhibernate/src/NHibernate.Test.VisualBasic/Issues/NH2545/Entity.vb
===================================================================
--- trunk/nhibernate/src/NHibernate.Test.VisualBasic/Issues/NH2545/Entity.vb (rev 0)
+++ trunk/nhibernate/src/NHibernate.Test.VisualBasic/Issues/NH2545/Entity.vb 2011-07-23 20:10:24 UTC (rev 5992)
@@ -0,0 +1,31 @@
+Namespace Issues
+
+ Namespace NH2545
+
+ Public Class Entity
+
+ Private _id As Guid
+ Public Overridable Property Id() As Guid
+ Get
+ Return _id
+ End Get
+ Set(ByVal value As Guid)
+ _id = value
+ End Set
+ End Property
+
+ Private _name As String
+ Public Overridable Property Name() As String
+ Get
+ Return _name
+ End Get
+ Set(ByVal value As String)
+ _name = value
+ End Set
+ End Property
+
+ End Class
+
+ End Namespace
+
+End Namespace
\ No newline at end of file
Added: trunk/nhibernate/src/NHibernate.Test.VisualBasic/Issues/NH2545/Fixture.vb
===================================================================
--- trunk/nhibernate/src/NHibernate.Test.VisualBasic/Issues/NH2545/Fixture.vb (rev 0)
+++ trunk/nhibernate/src/NHibernate.Test.VisualBasic/Issues/NH2545/Fixture.vb 2011-07-23 20:10:24 UTC (rev 5992)
@@ -0,0 +1,61 @@
+Imports NUnit.Framework
+Imports NHibernate.Test.NHSpecificTest
+Imports NHibernate.Linq
+
+Namespace Issues
+
+ Namespace NH2545
+
+ <TestFixture()>
+ Public Class Fixture
+ Inherits IssueTestCase
+
+ Protected Overrides Sub OnSetUp()
+
+ Using session As ISession = OpenSession()
+
+ Dim e1 = New Entity
+ e1.Name = "Bob"
+ session.Save(e1)
+
+ Dim e2 = New Entity
+ e2.Name = "Sally"
+ session.Save(e2)
+
+ session.Flush()
+
+ End Using
+
+ End Sub
+
+ Protected Overrides Sub OnTearDown()
+
+ Using session As ISession = OpenSession()
+
+ session.Delete("from System.Object")
+ session.Flush()
+
+ End Using
+
+ End Sub
+
+ <Test()>
+ Public Sub LinqStringEquality()
+
+ Using session As ISession = OpenSession()
+
+ Dim result = From e In session.Query(Of Entity)() _
+ Where e.Name = "Bob" _
+ Select e
+
+ Assert.AreEqual(1, result.ToList().Count)
+
+ End Using
+
+ End Sub
+
+ End Class
+
+ End Namespace
+
+End Namespace
Copied: trunk/nhibernate/src/NHibernate.Test.VisualBasic/Issues/NH2545/Issues.NH2545.Mappings.hbm.xml (from rev 5975, trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2760/Mappings.hbm.xml)
===================================================================
--- trunk/nhibernate/src/NHibernate.Test.VisualBasic/Issues/NH2545/Issues.NH2545.Mappings.hbm.xml (rev 0)
+++ trunk/nhibernate/src/NHibernate.Test.VisualBasic/Issues/NH2545/Issues.NH2545.Mappings.hbm.xml 2011-07-23 20:10:24 UTC (rev 5992)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="NHibernate.Test.VisualBasic" namespace="NHibernate.Test.VisualBasic.Issues.NH2545">
+
+ <class name="Entity">
+ <id name="Id">
+ <generator class="guid.comb"/>
+ </id>
+ <property name="Name" />
+ </class>
+
+</hibernate-mapping>
\ No newline at end of file
Added: trunk/nhibernate/src/NHibernate.Test.VisualBasic/My Project/Application.Designer.vb
===================================================================
--- trunk/nhibernate/src/NHibernate.Test.VisualBasic/My Project/Application.Designer.vb (rev 0)
+++ trunk/nhibernate/src/NHibernate.Test.VisualBasic/My Project/Application.Designer.vb 2011-07-23 20:10:24 UTC (rev 5992)
@@ -0,0 +1,13 @@
+'------------------------------------------------------------------------------
+' <auto-generated>
+' This code was generated by a tool.
+' Runtime Version:4.0.30319.235
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+' </auto-generated>
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
Added: trunk/nhibernate/src/NHibernate.Test.VisualBasic/My Project/Application.myapp
===================================================================
--- trunk/nhibernate/src/NHibernate.Test.VisualBasic/My Project/Application.myapp (rev 0)
+++ trunk/nhibernate/src/NHibernate.Test.VisualBasic/My Project/Application.myapp 2011-07-23 20:10:24 UTC (rev 5992)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <MySubMain>false</MySubMain>
+ <SingleInstance>false</SingleInstance>
+ <ShutdownMode>0</ShutdownMode>
+ <EnableVisualStyles>true</EnableVisualStyles>
+ <AuthenticationMode>0</AuthenticationMode>
+ <ApplicationType>1</ApplicationType>
+ <SaveMySettingsOnExit>true</SaveMySettingsOnExit>
+</MyApplicationData>
Added: trunk/nhibernate/src/NHibernate.Test.VisualBasic/My Project/AssemblyInfo.vb
===================================================================
--- trunk/nhibernate/src/NHibernate.Test.VisualBasic/My Project/AssemblyInfo.vb (rev 0)
+++ trunk/nhibernate/src/NHibernate.Test.VisualBasic/My Project/AssemblyInfo.vb 2011-07-23 20:10:24 UTC (rev 5992)
@@ -0,0 +1,35 @@
+Imports System
+Imports System.Reflection
+Imports System.Runtime.InteropServices
+
+' General Information about an assembly is controlled through the following
+' set of attributes. Change these attribute values to modify the information
+' associated with an assembly.
+
+' Review the values of the assembly attributes
+
+<Assembly: AssemblyTitle("NHibernate.Test.VisualBasic")>
+<Assembly: AssemblyDescription("")>
+<Assembly: AssemblyCompany("Microsoft")>
+<Assembly: AssemblyProduct("NHibernate.Test.VisualBasic")>
+<Assembly: AssemblyCopyright("Copyright © Microsoft 2011")>
+<Assembly: AssemblyTrademark("")>
+
+<Assembly: ComVisible(False)>
+
+'The following GUID is for the ID of the typelib if this project is exposed to COM
+<Assembly: Guid("f3bf0316-dff3-4f0c-918a-1f278d626d85")>
+
+' Version information for an assembly consists of the following four values:
+'
+' Major Version
+' Minor Version
+' Build Number
+' Revision
+'
+' You can specify all the values or you can default the Build and Revision Numbers
+' by using the '*' as shown below:
+' <Assembly: AssemblyVersion("1.0.*")>
+
+<Assembly: AssemblyVersion("1.0.0.0")>
+<Assembly: AssemblyFileVersion("1.0.0.0")>
Added: trunk/nhibernate/src/NHibernate.Test.VisualBasic/My Project/Resources.Designer.vb
===================================================================
--- trunk/nhibernate/src/NHibernate.Test.VisualBasic/My Project/Resources.Designer.vb (rev 0)
+++ trunk/nhibernate/src/NHibernate.Test.VisualBasic/My Project/Resources.Designer.vb 2011-07-23 20:10:24 UTC (rev 5992)
@@ -0,0 +1,63 @@
+'------------------------------------------------------------------------------
+' <auto-generated>
+' This code was generated by a tool.
+' Runtime Version:4.0.30319.235
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+' </auto-generated>
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+Imports System
+
+Namespace My.Resources
+
+ 'This class was auto-generated by the StronglyTypedResourceBuilder
+ 'class via a tool like ResGen or Visual Studio.
+ 'To add or remove a member, edit your .ResX file then rerun ResGen
+ 'with the /str option, or rebuild your VS project.
+ '''<summary>
+ ''' A strongly-typed resource class, for looking up localized strings, etc.
+ '''</summary>
+ <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0"), _
+ Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
+ Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
+ Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
+ Friend Module Resources
+
+ Private resourceMan As Global.System.Resources.ResourceManager
+
+ Private resourceCulture As Global.System.Globalization.CultureInfo
+
+ '''<summary>
+ ''' Returns the cached ResourceManager instance used by this class.
+ '''</summary>
+ <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
+ Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
+ Get
+ If Object.ReferenceEquals(resourceMan, Nothing) Then
+ Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("NHibernate.Test.VisualBasic.Resources", GetType(Resources).Assembly)
+ resourceMan = temp
+ End If
+ Return resourceMan
+ End Get
+ End Property
+
+ '''<summary>
+ ''' Overrides the current thread's CurrentUICulture property for all
+ ''' resource lookups using this strongly typed resource class.
+ '''</summary>
+ <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
+ Friend Property Culture() As Global.System.Globalization.CultureInfo
+ Get
+ Return resourceCulture
+ End Get
+ Set
+ resourceCulture = value
+ End Set
+ End Property
+ End Module
+End Namespace
Added: trunk/nhibernate/src/NHibernate.Test.VisualBasic/My Project/Resources.resx
===================================================================
--- trunk/nhibernate/src/NHibernate.Test.VisualBasic/My Project/Resources.resx (rev 0)
+++ trunk/nhibernate/src/NHibernate.Test.VisualBasic/My Project/Resources.resx 2011-07-23 20:10:24 UTC (rev 5992)
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+</root>
\ No newline at end of file
Added: trunk/nhibernate/src/NHibernate.Test.VisualBasic/My Project/Settings.Designer.vb
===================================================================
--- trunk/nhibernate/src/NHibernate.Test.VisualBasic/My Project/Settings.Designer.vb (rev 0)
+++ trunk/nhibernate/src/NHibernate.Test.VisualBasic/My Project/Settings.Designer.vb 2011-07-23 20:10:24 UTC (rev 5992)
@@ -0,0 +1,73 @@
+'------------------------------------------------------------------------------
+' <auto-generated>
+' This code was generated by a tool.
+' Runtime Version:4.0.30319.235
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+' </auto-generated>
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+
+Namespace My
+
+ <Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
+ Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), _
+ Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
+ Partial Friend NotInheritable Class MySettings
+ Inherits Global.System.Configuration.ApplicationSettingsBase
+
+ Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings)
+
+#Region "My.Settings Auto-Save Functionality"
+#If _MyType = "WindowsForms" Then
+ Private Shared addedHandler As Boolean
+
+ Private Shared addedHandlerLockObject As New Object
+
+ <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
+ Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
+ If My.Application.SaveMySettingsOnExit Then
+ My.Settings.Save()
+ End If
+ End Sub
+#End If
+#End Region
+
+ Public Shared ReadOnly Property [Default]() As MySettings
+ Get
+
+#If _MyType = "WindowsForms" Then
+ If Not addedHandler Then
+ SyncLock addedHandlerLockObject
+ If Not addedHandler Then
+ AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
+ addedHandler = True
+ End If
+ End SyncLock
+ End If
+#End If
+ Return defaultInstance
+ End Get
+ End Property
+ End Class
+End Namespace
+
+Namespace My
+
+ <Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
+ Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
+ Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
+ Friend Module MySettingsProperty
+
+ <Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
+ Friend ReadOnly Property Settings() As Global.NHibernate.Test.VisualBasic.My.MySettings
+ Get
+ Return Global.NHibernate.Test.VisualBasic.My.MySettings.Default
+ End Get
+ End Property
+ End Module
+End Namespace
Added: trunk/nhibernate/src/NHibernate.Test.VisualBasic/My Project/Settings.settings
===================================================================
--- trunk/nhibernate/src/NHibernate.Test.VisualBasic/My Project/Settings.settings (rev 0)
+++ trunk/nhibernate/src/NHibernate.Test.VisualBasic/My Project/Settings.settings 2011-07-23 20:10:24 UTC (rev 5992)
@@ -0,0 +1,7 @@
+<?xml version='1.0' encoding='utf-8'?>
+<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" UseMySettingsClassName="true">
+ <Profiles>
+ <Profile Name="(Default)" />
+ </Profiles>
+ <Settings />
+</SettingsFile>
Added: trunk/nhibernate/src/NHibernate.Test.VisualBasic/NHibernate.Test.VisualBasic.vbproj
===================================================================
--- trunk/nhibernate/src/NHibernate.Test.VisualBasic/NHibernate.Test.VisualBasic.vbproj (rev 0)
+++ trunk/nhibernate/src/NHibernate.Test.VisualBasic/NHibernate.Test.VisualBasic.vbproj 2011-07-23 20:10:24 UTC (rev 5992)
@@ -0,0 +1,133 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>
+ </ProductVersion>
+ <SchemaVersion>
+ </SchemaVersion>
+ <ProjectGuid>{7C2EF610-BCA0-4D1F-898A-DE9908E4970C}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <RootNamespace>NHibernate.Test.VisualBasic</RootNamespace>
+ <AssemblyName>NHibernate.Test.VisualBasic</AssemblyName>
+ <FileAlignment>512</FileAlignment>
+ <MyType>Windows</MyType>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <TargetFrameworkProfile />
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <DefineDebug>true</DefineDebug>
+ <DefineTrace>true</DefineTrace>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DocumentationFile>NHibernate.Test.VisualBasic.xml</DocumentationFile>
+ <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <DefineDebug>false</DefineDebug>
+ <DefineTrace>true</DefineTrace>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DocumentationFile>NHibernate.Test.VisualBasic.xml</DocumentationFile>
+ <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
+ </PropertyGroup>
+ <PropertyGroup>
+ <OptionExplicit>On</OptionExplicit>
+ </PropertyGroup>
+ <PropertyGroup>
+ <OptionCompare>Binary</OptionCompare>
+ </PropertyGroup>
+ <PropertyGroup>
+ <OptionStrict>Off</OptionStrict>
+ </PropertyGroup>
+ <PropertyGroup>
+ <OptionInfer>On</OptionInfer>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="nunit.framework">
+ <HintPath>..\..\lib\net\3.5\nunit.framework.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ </ItemGroup>
+ <ItemGroup>
+ <Import Include="Microsoft.VisualBasic" />
+ <Import Include="System" />
+ <Import Include="System.Collections" />
+ <Import Include="System.Collections.Generic" />
+ <Import Include="System.Data" />
+ <Import Include="System.Diagnostics" />
+ <Import Include="System.Linq" />
+ <Import Include="System.Xml.Linq" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Issues\IssueTestCase.vb" />
+ <Compile Include="Issues\NH2545\Fixture.vb" />
+ <Compile Include="Issues\NH2545\Entity.vb" />
+ <Compile Include="My Project\AssemblyInfo.vb" />
+ <Compile Include="My Project\Application.Designer.vb">
+ <AutoGen>True</AutoGen>
+ <DependentUpon>Application.myapp</DependentUpon>
+ </Compile>
+ <Compile Include="My Project\Resources.Designer.vb">
+ <AutoGen>True</AutoGen>
+ <DesignTime>True</DesignTime>
+ <DependentUpon>Resources.resx</DependentUpon>
+ </Compile>
+ <Compile Include="My Project\Settings.Designer.vb">
+ <AutoGen>True</AutoGen>
+ <DependentUpon>Settings.settings</DependentUpon>
+ <DesignTimeSharedInput>True</DesignTimeSharedInput>
+ </Compile>
+ </ItemGroup>
+ <ItemGroup>
+ <EmbeddedResource Include="My Project\Resources.resx">
+ <Generator>VbMyResourcesResXFileCodeGenerator</Generator>
+ <LastGenOutput>Resources.Designer.vb</LastGenOutput>
+ <CustomToolNamespace>My.Resources</CustomToolNamespace>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="..\NHibernate.Test\App.config">
+ <Link>App.config</Link>
+ </None>
+ <None Include="My Project\Application.myapp">
+ <Generator>MyApplicationCodeGenerator</Generator>
+ <LastGenOutput>Application.Designer.vb</LastGenOutput>
+ </None>
+ <None Include="My Project\Settings.settings">
+ <Generator>SettingsSingleFileGenerator</Generator>
+ <CustomToolNamespace>My</CustomToolNamespace>
+ <LastGenOutput>Settings.Designer.vb</LastGenOutput>
+ </None>
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\NHibernate.Test\NHibernate.Test.csproj">
+ <Project>{7AEE5B37-C552-4E59-9B6F-88755BCB5070}</Project>
+ <Name>NHibernate.Test</Name>
+ </ProjectReference>
+ <ProjectReference Include="..\NHibernate\NHibernate.csproj">
+ <Project>{5909BFE7-93CF-4E5F-BE22-6293368AF01D}</Project>
+ <Name>NHibernate</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <ItemGroup>
+ <EmbeddedResource Include="Issues\NH2545\Issues.NH2545.Mappings.hbm.xml" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
\ No newline at end of file
Modified: trunk/nhibernate/src/NHibernate.sln
===================================================================
--- trunk/nhibernate/src/NHibernate.sln 2011-07-23 19:31:58 UTC (rev 5991)
+++ trunk/nhibernate/src/NHibernate.sln 2011-07-23 20:10:24 UTC (rev 5992)
@@ -15,6 +15,8 @@
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NHibernate.TestDatabaseSetup", "NHibernate.TestDatabaseSetup\NHibernate.TestDatabaseSetup.csproj", "{BEEC1564-6FB6-49F7-BBE5-8EBD2F0F6E8A}"
EndProject
+Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "NHibernate.Test.VisualBasic", "NHibernate.Test.VisualBasic\NHibernate.Test.VisualBasic.vbproj", "{7C2EF610-BCA0-4D1F-898A-DE9908E4970C}"
+EndProject
Global
GlobalSection(TestCaseManagementSettings) = postSolution
CategoryFile = NHibernate.vsmdi
@@ -40,6 +42,10 @@
{BEEC1564-6FB6-49F7-BBE5-8EBD2F0F6E8A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BEEC1564-6FB6-49F7-BBE5-8EBD2F0F6E8A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BEEC1564-6FB6-49F7-BBE5-8EBD2F0F6E8A}.Release|Any CPU.Build.0 = Release|Any CPU
+ {7C2EF610-BCA0-4D1F-898A-DE9908E4970C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {7C2EF610-BCA0-4D1F-898A-DE9908E4970C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {7C2EF610-BCA0-4D1F-898A-DE9908E4970C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {7C2EF610-BCA0-4D1F-898A-DE9908E4970C}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|