|
|
|
Error: "string must be exactly one character long"
Thu, 9 Oct 2008 21:56:00 -0700
I'm getting this error message when running a LINQtoSQL query. My entity
classes are as follows:
[Table(Name="Activities")]
public partial class Activity
{
#region Fields
[Column(IsPrimaryKey = true, DbType="SmallDateTime NOT NULL")]
public DateTime Activity_Date { get; set; ...
|
This can't get more amazing see for yourself! http://tardis-db.co.uk/
Thu, 9 Oct 2008 21:31:49 -0700 (PDT)
This can't get more amazing see for yourself! http://tardis-db.co.uk/ ...
|
Array casting bug??
Thu, 9 Oct 2008 22:16:57 -0500
If variance/covariance is not allowed in array of value types, why is the
expression on the "Main" method run successfully (see snippet below)? I am
missing something?
Thank you.
---------------------
class Program
{
enum Foo
{
a, b, c
}
enum Bar
{
x, y, z
...
|
Multicast delegates and hashtable problem
Thu, 9 Oct 2008 17:38:52 -0700 (PDT)
Hello all?
I?m trying to get the below to work and cannot get the format right.
It?s from this example: http://msdn.microsoft.com/en-us/library/8627sbea(VS.71).aspx
What it is: I?m trying to store multicast delegates in a hash table,
and then fire the delegates one of two ways (after registering/
creatin ...
|
where clause help
Thu, 9 Oct 2008 16:41:46 -0700
PROBLEM:
I want to create a linq query of an in memory object based on 3 possible
filters, and the only way I can think is something like the code below.
Besides being verbose, I'm repeating myself. How can I rewrite this??
Thanks for your help - BH
CODE:
I've included the whole class for context, but it ...
|
conditional where clause
Thu, 9 Oct 2008 16:32:13 -0700
PROBLEM:
I want to create a linq query of an in memory object based on 3 possible
filters, and the only way I can think is something like the code below.
Besides being verbose, I'm repeating myself. How can I rewrite this??
Thanks for your help - BH
CODE:
I've included the whole class for context, but it ...
|
Split
Thu, 9 Oct 2008 15:37:49 -0700 (PDT)
Hello,
I have a string as follows:
string text = "Paris, New York , London,Lisbon,Oslo, Chicago ";
I need to get all words with no commas or spaces:
"Paris", "New", "York", "London", "Lisbon", "Oslo", "Chicago"
I am using (I think it is ok):
string[] words = text.Split(new char[] { ',' , ' '})
...
|
|
|
sql query to delimited string
Thu, 09 Oct 2008 16:23:34 -0500
Hi,
I'm building a C# VS2005 project and I need an elegant way to output
query results to an string[] array or list<T> of delimited strings.
Thanks,
Bill ...
|
C# PowerShell Exchange 2007 Manage code
Thu, 9 Oct 2008 13:46:04 -0700
i read the MS kb:
Using Exchange Management Shell Commands With Managed Code
http://msdn.microsoft.com/en-us/library/bb332449.aspx
how ever i'm getting
"{"No Windows PowerShell Snap-ins are available for version 1."}"
exception when i try to call
PSSnapInInfo info =
rc.AddPSSnapIn("Microsoft.Exchange.M ...
|
WinForm closed during Windows restart
Thu, 9 Oct 2008 12:32:34 -0700 (PDT)
All,
I have a form that has a text box and button - when the button is
pressed the form will close if the correct text is in the text box -
works fine.
However, if the text box is blank I can't reboot a Windows PC which I
want to allow (if I enter the correct text it will reboot). Is there
anything I can c ...
|
|
|