Hi guys, i have a question to do..
The framework java give us free an API full of context of any class of they framework.
In .net is possible shared the same idea?
I never found anything, i need always to go to the internet to consult any classe or something..
...
I wonder if there's some way of doing this, or even if it should be done? My thoughts soon went to using method attributes as it's a kind of metadata, but I'm unsure if there are any for this purpose. Right now, I'm simply using XML comment <remark> tags to tell when a method implements some interface. But this is of course no structured...
I have a populated SqlCommand object containing the command text and parameters of various database types along with their values. What I need is a T-SQL script that I could simply execute that would have the same effect as calling the ExecuteNonQuery method on the command object.
Is there an easy way to do such "script dump" or do I ha...
I have following LINQ statement and I want to rewrite it using extension methods.
from x in e
from y in e
from z in e
select new { x, z }
One possible solution is:
e.Join(e, x => 42, y => 42, (x, y) => new { x, y })
Join(e, _ => 42, z => 42, (_, z) => new { _.x, z });
However this is everything but elegant.
Do you any idea how...
I need to change thw environment variable Environment.GetEnvironmentVariable("TMP") for a Windows service in .NET 2.0 that is running with its own user account. The server is a Windows Server 2003, SP2. Can anybody tell me how to change the Windows environment variable for that user?
...
I have seen on many sites the silverlight video player. I noticed that all of them took a URL as the source of the video file.
Can a silverlight player play a video file kept locally?
I mean a simple HTML file kept in a folder with the xap (say VideoPlayer.xap) and the video (say ABC.avi) file.
The html file would contain an object ...
Short and sweet version:
On one machine out of around a hundred test machines decimal.TryParse() is converting "1.01" to 0.01
Okay, this is going to sound crazy but bear with me...
We have a client applications that communicates with a webservice through JSON, and that service returns a decimal value as a string so we store it as a ...
I have a OneToMany relationship in an SQL Server database.
When I add the tables to my Linq to SQL diagram (DBML) the relationship comes up as OneToOne.
I have other OneToMany relationships which synchronise correctly.
Even If I change the cardinality to OneToMany the collection still only returns a single entity.
Could this be a bug...
One of our 'frontend' developers keeps requesting from us backend developers that the backend notifies all connected clients (it's a client/server environment) of changes to objects. As in: whenever one user makes a change, all other connected clients must be notified immediately of the change.
At the moment our architecture does not ha...
How to fill multiple tables in a dataset.
I m using a query that returns me four tables.
At the frontend I am trying to fill all the four resultant table into dataset.
Here is my Query. Query is not complete. But it is just a refrence for my Ques
Select * from tblxyz compute sum(col1)
suppose this query returns more than one table...
I'm trying to build a test environment to test an app against oracle and sql server. The aim is to have the same code base for both test scenarios, the only difference should are some SQL/DDL/... statements that are stored in script files. The problem is that oracle's ODP does not support the execution of scripts but only single commands...
Hi all,
I am currently developing some user controls so that I can use them at several places within a project. One control is a about editing a list of addresses for a customer. Since this needs to be done at several places within the project I want to make it a simple user control. The user control contains a repeater control. By defa...
I want to sniff https traffic with fiddler, but the traffic is generated via a 3rd party assembly instead of a web browser.
Are there similar mechanisms available so that I can add the fiddler certificate into the trusted category or would you recommend any other trick?
...
I have read that to match a word inside of a string using Regular expressions (in .NET), I can use the word boundary specifier (\b) within the regex. However, none of these calls result in any matches
Regex.Match("INSERT INTO TEST(Col1,Col2) VALUES(@p1,@p2)", @"\b@p1\b");
Regex.Match("INSERT INTO TEST(Col1,Col2) VALUES(@p1,@p2)", @"\bI...
I am unable to use an unsecure channel once a secure channel has already been registered. The code below works only if on the client side, the unsecured channel is registered before.
Is it possible to mix secure and unsecure channels without any constraint on the registration order ?
using System;
using System.Collections;
using System...
Hello,
What is the best way for me to add my own properties to an existing Silverlight control? For example I would like to associate a custom class with the DataGrid and be able to set the properties of this custom class in Expression Blend?
Is this an easy thing to do?
Thanks,
AJ
...
I'm developing a new user store for my organisation and am now tackling password storage. The concepts of salting, HMAC etc are all fine with me - and want to store the users' passwords either salted and hashed, HMAC hashed, or HMAC salted and hashed - not sure what the best way will be - but in theory it won't matter as it will be able...
Hi,
This seems like it would be a common issue to be but I don't know the best way to solve it. I want to be able to send an Entity to a view, have changes be made to the entity in the view, but then cancel (remove) those changes if the user cancels out of the view. What is the proper way to do this.
Here are two options I have but I...
I'm thinking about where to put the unit/integration test project. I follow the 1 test project pr. project convention
I can think of 3 ways, that all seems good to me, which make it kind of hard to choose :-)
Test project is put under a Tests sub folder to the project it tests.
Test project is put next to the project it tests, in a "p...
Hi!
I have a OdbcDataReader that gets data from a database and returns a set of records.
The code that executes the query looks as follows:
OdbcDataReader reader = command.ExecuteReader();
while (reader.Read())
{
yield return reader.AsMovexProduct();
}
The method returns an IEnumerable of a custom type (MovexProduct). The conv...