Anyone knows the problem why linq to xml or xpath extensions cant seem to read this xml?
http://www.quillarts.com/Test/product.xml
var document = XDocument.Load(feedUrl);
var xpathxml = from feed in document.XPathSelectElements("//Products") //using Xpath
var linqtoxml = from feed in document.Descendants("Products") //using Linq2XML
...
Is there any C# .NET ORM that can create databases ?
It should be capable of creating MS + MySQL + PostGre + Oracle databases at least.
And I don't mean tables or schemas, I mean the database only.
I use nHibernate, but it can only create tables and schemas, and query/insert but not creating the database itself.
...
I have a linq to sql statement which returns a set of Customer details to a customer object
var customers = from .....
I then use
if(customers.Count() > 0)
{
return customers.First();
}
else
{
return null;
}
but customers.Count()
throws a
'customers.Count()' threw an exception of type 'System.NotSupportedException' int ...
Hey guys,
Quick question Re: Implementation of RowVersion.
I am looking to include it in my next database (Designing it now) and I am pondering 2 different ways:
RowVersion row in all tables
A separate RowVersion table which has the ID of the table as a foreign key and linked to it.
Anyone tried this? If so what pitfalls or pro's d...
hi
Can any one explain the process of adding excel file in c sharp...
and What are the requirements for that..and IS it necessary to install MS Excel in the system for using of Excel in C sharp
...
I want to write my first real MultiThreaded C# Application. While I used a BackgroundWorker before and know a thing or two about lock(object), I never used the Thread object, Monitor.Enter etc. and I'm completely lost where to start designing the Architecture.
Essentially my program runs in the background. Every 5 Minutes, it checks a w...
Can I extend or use partial classes to add more functions to
EntityCollection< Class>
eg.
this is the auto-generated classses from LINQ to SQL
customer.Orders
I want to be able to do
customer.Orders.FindByOrderID(orderID)
but Order is EntityCollection < Order >
Can I make this a partial class or extend it like I can do with just...
I am looking for an alternative to using UDP multicast on the .NET Framework and am looking for suggestions.
I need to send messages to several web servers running quite a few ASP.NET applications. These messages would be one-way only, coming from several different machines. UDP multicast would be perfect except that I can't use it due ...
Simimilar problem to
http://stackoverflow.com/questions/1957801/math-atan2-or-class-instance-problem-in-c
and
http://stackoverflow.com/questions/1193630/add-two-double-given-wrong-result
It is something that simple lines:
public static String DegreeToRadianStr(Double degree)
{
Double piBy180 = (Math.PI / 180);
Dou...
I have a .NET EXE and ATL COM EXE in Windows Mobile. I need to communicate between them.
I.e my ATL EXE launches the .NET EXE. The .NET EXE should send a message to the ATL EXE that the processing is completed or exited. How can I do that?
How to communicate between the two separate process?
...
I want to create a class that can only be inherited, for that i know it should be made abstract. But now the problem is that i want to use functions of that class without making them static. How can i do that.
public abstract Class A
{
A()
{}
public void display()
{}
}
public Class B:A
{
base.A() // this is accessible
this.displ...
Hi,
I have a problem with all multpile tab browsers due to session object. I have a requirement that whenever user opens a new browser I need to show different values, so I thought of using Session as in IE 6 every browser creates a new session. But all other multiple tab broswers IE 7 and IE 8 and FF shares the session(If user has alre...
My repository has List<Student>, List<Course> and List<Enrolment> where an Enrolment has Enrolment.Student and Enrolment.Course which are references one of the students or courses in the two previous lists.
When I use XmlSerializer on my repository it outputs redundant data as it serializes all properties of each student in List<Stude...
In the .NET base class library there is a class System.IO.Path for doing common operations on strings representing a file system path. However, what I need is a class that encapsulates a path instead, so I get type-safety and a possibly shorter notation of path operations. I'm thinking of a .NET equivalent of C++ Boost's path class. Does...
What I really want to do is convert DateTime.Now.Ticks to the shortest possible string without losing any precision. How is this possible? Let's assume we're using 7bit ASCII character set.
...
i have a requirement This ‘if’ structure must be changed. As it is currently coded the agent version is only set when the policy GUID sent by
RM matches a GUID of a policy on the server. We always want to set the version regardless of whether the GUIDs match.(what ever be the situation)
here is the coding
ResourcePolicy rp = null;...
We have a WCF service hosted on IIS behind a SiteMinder proxy (for lack of a better term). In essence, requests enter the SiteMinder at https://public.domain.com/SOA/Service.svc with http basic authentication. SiteMinder verifies the authentication, strips it off and sends a request to http://internal.domain/SOA/Service.svc with no aut...
Hi I navigate with a bindingnavigator threw a datagridview. this datagridview is connected with a database.
If I want to delete a row on the datagridview then it deletes it perfectly, But the row in the database stays.
private void deletetoolStripButton_Click(object sender, EventArgs e)
{
if (MessageBox.Show("Delete recor...
We have a .NET 2.0 application out where we've set the user settings Roaming = False (the default value).
Now, some citrix users complain that the settings are not stored. We belive the problem will be solved by setting Roaming = True.
But how do we update the application at the clients and at the same time restore previously stored ...
I need a way to uniquely identify a computer using .NET that works in both Windows and Linux.
The methods used in both operational system do not have to be the same. That is: I can have an approach for Mono running on Linux and another approach for .NET running on Windows.
I took a look at another similar question on SO and it seems th...