I'm trying to use a DataTable to get the schema of a SQL Server DB.
But, when try to detect the ForeignKeys, the constraints collection only brings the UNIQUE constraints.
Private Sub ShowConstraints(ByVal tableName As String)
Dim table As DataTable = New DataTable(tableName)
Using connection As SqlConnection = New SqlConnectio...
How can I send the window minimized to tray when on click close button?
Also how to show icon in tray when application start?
...
In the nhibernate doco is states that to use the prevalence cache use the provider class “NHibernate.Caches.Prevalence.PrevalenceCacheProvider, NHibernate.Caches.Prevalence” https://www.hibernate.org/hib_docs/nhibernate/1.2/reference/en/html/performance.html#performance-cache
Where do I go to doanload the assembly that contains this typ...
Are there any frameworks out there that allow for data-driven dependency injection (ideally in .NET)? I'm thinking something inspired by Spring.NET for example, where you configure your object graphs in structured database tables, rather than using an XML config file. What would be the pros and cons of configuring your application in t...
I am running Blogengine.Net and have noticed that the tables are all created lower case (table name be_settings) but a lot of the queries are written mixedcase (Select * from be_Settings). This works fine if your MySql instance is running on Windows or set for capatability with Windows. I am getting an error as my hosting provider MySq...
good morning!
i have the following object in a list:
public class DemoClass
{
public int GroupKey { get; set; }
public string DemoString { get; set; }
public object SomeOtherProperty { get; set; }
}
now i want to create following dictionary out of it:
Dictionary<int, List<DemoClass>>
following behaviour is tried to app...
What would be a simple way to store a Byte[] array in XML (using C#) ?
...
Hi anybody please tell me how to use reports in c# , specifically rdlc please explain its architecture and if possible please post some sample code.
...
We are getting the following error when syncing with sql server (2005 SP3):
Initializing SQL Server Reconciler has failed. Try again.; The merge process could not connect to the message file from Subscriber '{F238C7BC-E13B-40E4-99F2-F11A203BD65A}:W:\http_content\Secure\SECURE_PROD\data_merge\30.18F5D9B4BCC7_B1415013-9FB7-424A-AB45-643A0...
Hi,
Few days ago I watched a BDD screencast by Rob Conery. In the video he showed how to use MSpec, so I downloaded it and played with the bits. What I want now is to integrate MSpec with MS Build, but I don't know how... I use TFS team build as my CI server - Can you help me to integrate MSpec with MSBuild?
Thanks!
...
I've just begon using Transactions in .NET and I have a problem. In a function (in my DAL) I use a transaction scope. On the end of the function I trigger the Complete() function.
Now I have a test for this function which also uses a transaction scope. On the end of this test function I do not trigger the complete() function so that my...
I found solutions for Windows Forms with AppDomain but what would be the equivalent for a WPF Application object?
...
In my views I verry often have to write
<%=Model.T9n.TranslateById("someId");%>
Is there some way to make this more compact/readable. A custom tag maybe?
<asp:T9n>someId</asp:T9n>
or better
<t9n: someId />
Note
There are several (business) reasons why I can't use the default T9n tools in visual studio so that's why I've rolled ...
I have a program A, it also have an app.config file where I have added some keys like server address, username and password for connecting to a server. It is a console application. Now I want to make a UI which I have done. In that UI I want to modify the content of app.config of program A. How do I do that?
Here is what I tried, I cop...
If I add an application from vs 2005 to Moss and I have a class in a separated file (but inside the application) everything works but not the class.
How can I make it work? I am not refering to an separated DLL.
...
I am looking for a nice way to save / load the following.
I want to save as XML and ideally looking to use LiNQ (namely to help me learn LINQ)
I don't know how to do nested linq writes though. Can anyone help?
/// <summary>
///
/// </summary>
public class ErrorType
{
List<ErrorType> _childErrors;
public String Name { get...
I have used LINQ to SQL successfully on an number of projects recently, but am keen to move to LINQ to Entities since this looks like the area that will be receiving more investment from Microsoft as they move to .NET 4.0 and beyond.
Before doing so I am keen to find out what things LINQ to SQL has that are missing from LINQ to Entities...
Possible Duplicates:
Visual Studio 6 tips and tricks
Visual Studio 2005 Shortcuts
Favorite Visual Studio keyboard shortcuts
I am a big fan of shortcuts in VS2008, it can save a lot of time and keep your fingers on the keyboard instead of the mouse.
Recently I downloaded the entire list of keyboard shortcuts for VS 2008 and we...
To retrieve the list of printers I use:
new LocalPrintServer().GetPrintQueues(new[] { EnumeratedPrintQueueTypes.Local, EnumeratedPrintQueueTypes.Connections })
How do I determine, which of the printers is the default printer?
Note: the System.Printing.dll assembly is used.
...
Well if i want to store data for a application machine wide i just use
Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)
And if i want to store data per user i use
Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)
But what if i want to save data per application instance? i could use...