I just read a blog post about NHibernate's ability to create a GUID from the system time (Guid.Comb), thus avoiding a good amount of database fragmentation. You could call it the client-side equivalent to the SQL Server Sequential ID.
Is there a way I could use a similar strategy in my Linq-to-Sql project (by generating the Guid in code...
This is just a curiosity question I was wondering if anyone had a good answer to:
In the .NET Framework Class Library we have for example these two methods:
public static IQueryable<TSource> Where<TSource>(
this IQueryable<TSource> source,
Expression<Func<TSource, bool>> predicate
)
public static IEnumerable<TSource> Where<TSo...
can any one explain with examples
Related Discussion:
http://stackoverflow.com/questions/21078/whats-the-best-string-concatenation-method-using-c
...
When using an external assembly which comes with an XML documentation file, how do I get visual studio to find it?
When having an XML documentation file, is there a program or xml transform file or something I can use to look at it in a nice way? Not necessarily as complex as the msdn documentation viewer thingy, but at least something ...
In short: I want to define what XML ButtonSettings element to use for a XAML-Button, and to use the childs of the selected ButtonSettings-element in a style applied to that Button.
Is this possible?
A sample of the XML:
<Buttons>
<ButtonSettings ID="Bye">
<Text lang="NL">Doei!</Text>
<Text lang="DE">Tsusch!</Text>
<Tex...
I have multi level panels. where i need to set the outer panel as enabled false and inner panel as enabled true. how can i do?
...
I want to add a VC++ DLL reference into my C# Visual Studio project. But when I try to add it I see, "It is not a valid assembly or COM component".
Please suggest how I can use the VC++ DLL as a reference in a C# project.
...
Hi,
I am writing an installer class in which I am creating a new Application Pool. This obviously is not going to work on IIS <6.0. How can I safely check (programmatically in .Net) if IIS supports application pools before I try to add one?
...
I have a situation where I want to convert a RTF document to image for archiving and printing. I am using .NET.
Are there any libraries out there that could help me with this conversion?
I need to
convert a RTF to image on a server
set the paper size that needs to be adhered to when creating the image
A commercial library is an op...
I have a C# user control project which causes intermittent .NET run time error, a generic error, and wondering if there is any code analysis tool that I can point at my .sln file which would tell me what may be causing my error
...
How can I scan a bunch of Microsoft Word (2003) documents? I am searching for a certain phrase in the documents and want to return the file names of those which contain the phrase.
A code sample would be especially helpful.
...
Weird issue going on. .NET 2.0 site using the System.Web.Extensions Version 1.0.61025.0 for some little AJAX stuff. We have a Web Farm with 2 load balanced servers. The site has been up for about 2 years now with no issues. Currently the hosting company upgraded the Framework to 3.5 and now a page that is using an simple asp:Panel is...
Hello,
I've made a quite big domain model with entity framework. I wanted to know if it is possible to map it so i create automaticly the tables in the database wanted?
I've looked up edmgen.exe but still couldn't find the right command.
thank's for helping!
Edit1: I know the tool LightSpeed from Mindscape ofer this features that's w...
As far as I know, in MS SQL Server 2000+ stored procedures are compiled, and run faster than normal non-compiled queries. I wonder if MS SQL Server also compiles LINQ to SQL queries, and caches that compilation, for performance purposes.
...
We are about to setup a cruise control.net with and NAnt and TFS, do I need visual studio 2005/2008 with team explorer installed or can I make this work with just the free Team explorer client
...
For example: "½" or ASCII DEC 189. When I read the bytes from a text file the byte[] contains the valid value, in this case 189.
Converting to Unicode results in the Unicode replacement character 65533.
UnicodeEncoding.Unicode.GetString(b);
Converting to ASCII results in 63 or "?"
ASCIIEncoding.ASCII.GetString(b);
If this ...
Good morning,
I have a .Net 2.0 runtime DLL that I am trying to load from Excel (it's correct regasm'd). I've verified with the Fusion Log Viewer that it is trying to load with the 1.1 runtime instead o 2.0, which explains why it's failing.
One solution is to put an EXCEL.EXE.config file next to excel that looks like this:
<?xml vers...
In my asp.net-mvc project I do a redirect from a post request to a get request.
In between my redirect and my arrival of the method I expect it to arrive, one of my parameters magically turns into null and I can't figure out why.
Probably it has something to do with my global.asax (route defenition).
The only way I can come up with to d...
I have a project that is requiring extensive use of a data source that only exists as what appears to be a copy book. For instance,
01 CMT-COMM-MSTR-EXTRACT-RECORD.
05 CMT-FIXED-AREA-1.
10 CMT-COMMUNITY-RECORD-KEY.
15 CMT-ALTERNATE-KEY.
20 CMT-ALTERNATE-KEY-STATE
...
Is it possible that .NET uses on server A ',' as decimal seperator and on another server B '.'? + How can you detect this?
When converting strings to doubles, on server A everything works fine, but on server B we have problems.
Example:
server A : 20,4 --> 20.4
server B : 20,4 --> 204
We would need to detect this so that on both serv...