Are there any EF designers out there that actually work? I would like to find an EF designer that isn't the default VS 2008 one. I have a relation between two entities that is absurdly wrong. No, actually I have a related field, it can't highlight the relationship for me because it doesn't exist. I could just exclude the field from ...
Hi,
I'm using Sandcastle Help File Builder GUI and I can't seem to get code examples in my comments to appear in the help file output.
I'm generating Help 1.x and MSDN-style HTML documentation.
The examples look like the following in my code:
/// <summary>
/// Connects to the server
/// </summary>
/// <example> Connec...
Possible Duplicate:
How to determine if .NET assembly was built for x86 or x64?
How can I know if a .Net DLL was compiled for x86, x64 or any architecture?
...
I have a set of properties and need to provide a default values for them. Sure I can do the following in getter:
public string MyProp {
get {
if(!string.IsNulOrEmpty(_myProp))
return _myProp;
else
return "Default";
}
But I`d like it to look li...
look at the following picture, which showing smart tag for DataGridView
Now I'm creating new component and I want it to support showing some properties in Smart Tags, how to add the properties to the smart Tag?
...
When I have a template page open in the VS editor, and run my Dynamic Data project, I immediately get an error that the page being edited can't be found, even when this is not the start page.
From this I gather the Dynamic Data runtime wants to write something to all pages, and I am very curious why. I'm sure it's nothing as droll as...
I'm writing a screen-scraper for StackOverflow. The bit I'm writing now takes the HTML and puts all the information into a model object. I've run into a bit of bother while parsing the information from an answer.
The problem is the date format that StackOverflow uses to describe absolute times. DateTime.Parse doesn't work on them. I've...
I'm using Tamir's SharpPCap to try to send data to my msn.
Currently, for testing purposes, my idea is to wait for any msg received by [email protected] and then send the packet itself again, that is, make any message appear repeated forever on my msn. I thought this had to work, as I am simply getting the packet itself I receive, and rese...
This is the C# code. Can you help me translate this to powershell?
private static void Main(string[] args)
{
byte[] buffer = (byte[]) Registry.LocalMachine.OpenSubKey(@"HARDWARE\ACPI\DSDT\HP____\8510x\00010000").GetValue("00000000");
if (File.Exists("8510x.orig"))
{
Console.WriteLine("File 8510x.orig already exists...
I'm having an issue with some byte conversions and a few of my calcualtions in one of my applications. I was able to contribute it to the person running it having an Italian Culture setting in windows. So my question is: What is the best way to for "en-US" on any computer running my application. I have a code sample below, but I am un...
Is it possible to change this code, with a return value and an exception:
public Foo Bar(Bar b)
{
if(b.Success)
{
return b;
}
else
{
throw n.Exception;
}
}
to this, which throws separate exceptions for success and failure
public Foo Bar(Bar b)
{
throw b.Success ? new BarException(b) : new FooException...
More specifically, I tried having a grid of 48 rows, 40 units high, contained in a scroll viewer... each row was to contain a progress bar, but for whatever reason, this really REALLY slowed down my user interface, so I've scrapped it. My questions are as follows:
Why would the progress bar cause such extreme slowdown, especially while ...
I am using VSTS2008 + C# + .Net 3.5 to develop WCF service hosted in IIS. Then I generate client proxy code automatically by using Add Service Reference function from VSTS 2008.
My question is, suppose I create a client proxy instance, then use this specific instance to call various methods exposed by WCF service at server side. Then, e...
The title tells it all, I need to see how others solve this to get a grasp around it. WebForm applications won't help me, as I don't understand WebForms and it would really confuse me (if possible) even more.
If such a example or framework would fit together with Entity framework it would rock my world.
Edit - Added some info:
WinFo...
How can I get an instance of some type (registered in a different Registry) inside StructureMap Registy constructor? I want to use such a code:
public RepositoriesRegistry()
{
IApplicationSettings lApplicationSettings =
ObjectFactory.GetInstance<IApplicationSettings>();
Debug.Assert(lApplicationSettin...
Create a new ASP.NET MVC Web
Application
Create an ASP.NET App_Code
Folder
Inside the new
folder, create a class with an
Extension Method. For example:
static public class BugMVCExtension
{
public static int ToInt(this string str)
{
return Convert.ToInt32(str);
}
}
Choose a View and try to use this new Extension ...
Hi, I would like to ask if there is a more elegant way to do this:
List<char> unallowed = new List<char>();
for (char c = '\u0000'; c <= '\u0008'; c++) {
unallowed.Add(c);
}
for (char c = '\u000B'; c <= '\u000C'; c++) {
unallowed.Add(c);
}
// And so on...
I have to add to the list a few contiguous ranges of Unicode characte...
I have 2 Xaml files, one containing a DataTemplate which has a resource definition for an Image brush, and the other containing a content control which presents this DataTemplate. The data template is bound to a view model class. Everything seems to work EXCEPT the ImageBrush resource, which just shows up white... Any ideas?
File 1: D...
Hello,
I have installed an application off the web via ClickOnce. Examining the application in Reflector shows that it depends on two custom libraries--Thirteen23.Library.3 and TwitterLib. When attempting to open classes defined in these libraries, Reflector complains that
"The following assembly name cannot be resolved automatically...
I am trying to solve an issue in my application. I am developing the application in Vista and it works fine there, but when I take it to XP, the form becomes sluggish and unresponsive. When I watch the windows messages using breakpoints, I find that in XP the form is repeatedly painted about once every second (even though it does not r...