What are the Open source options available for Business Object design framework in .NET. One we are already using is CSLA.NET by Rockford Lhotka, which is a very good framework. But I am interested in knowing other options. If anyone know any other good one please reply here.
...
In my querystring I get a bunch of parameter names and values.
As I understand I should be using the built in asp.net mvc function TryUpdateModel(modelInstance).
It seems though that it is not working as I'm expecting. My parameter names do defer in capitalization. Is this a problem?
Furthermore I have some custom types that need a speci...
Is it possible to programatically block users for accesing the context menu on files listed after showing an openfiledialog control that comes with the .net framework?
The intent is to block them from accessing "open" or "open with" and only allow them to pick a file from the list.
My only other idea is to build my own control instead ...
Using an Oracle 11g database. I have a service that is tagged with:
[ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall, TransactionTimeout="00:00:10")]
The method itself looks like this:
[OperationBehavior(TransactionScopeRequired = true)]
[TransactionFlow(TransactionFlowOption.NotAllowed)]
public OrderMess...
I fail to see the reason why this code fails (Error binding to target method.)
public interface Interface
{}
public class Implementation : Interface
{}
public class Program
{
public static void Main()
{
Invoke();
}
public Interface SomeMethod(object arg)
{
return...
I think I'm missing some fundamentals here so hopefully this post can clarify this.
I've taken a dump and am looking at the managed heap and am interested in looking specifically at what objects are within each heap. Here is the output from the debugger:
0:000> !eeheap -gc
Number of GC Heaps: 1
generation 0 starts at 0x3cca447c
generat...
I'm using DashStyle.Dash while rendering my hierarchy of objects. My application uses Graphics.Transform extensively and I find that at some scale values (including a scale of 100%) and some angles of rotation, Graphics.DrawLine throws OutOfMemoryException when using a pen with DashStyle.Dash. Using Google I found that this is a well-kno...
I have a library that needs to respond to exceptions in different ways depending on whether it is running in a Console app, WinForms, AspNet or Windows Service. I have experimented with looking at various properties in the System.Windows.Forms and System.Web namespaces, but I can't find a reliable way of detecting exactly which kind of ...
Duplicate
http://stackoverflow.com/questions/415620/redirect-console-output-to-textbox-in-separate-program-c
http://stackoverflow.com/questions/353601/capturing-nslookup-shell-output-with-c
I am looking to call an external program from within my c# code.
The program I am calling, lets say foo.exe returns about 12 lines of text.
...
Hi all,
I was wondering if someone could explain what Func<int, string> is and how it is used with some clear examples.
Thanks in advance
...
I'm using the 2.0 framework and I'm looking for a generic way to determine if a column exists in a table. I want to use this code with multiple database types and providers.
The GetSchema method will return schema information but the format of the information and the data to restrict the information returned both seem to be specific to...
I'm using the ServiceController class to start a (custom) installed service, like this:
var newServiceController = new ServiceController("theNameOfMyService");
newServiceController.Start();
Trouble is, the service always runs under the local system account, and instead I want it to run under my account.
Can anyone tell me how to use ...
I have a xsd file and I need to generate a xml file from it. What is the easiest way to achieve this?
EDIT: There is a similar question here and so i want to close my question. However if you have an answer please post it...
EDIT:
One of the respondents deleted their answer, but i found it to be the simplest solution that works for me....
I am developing a .NET based desktop application written in C#. If and when the application crashes, I would like to capture certain details regarding the machine on which the application was running:
Operating system details: version, service pack etc.
.NET details: Framework version
Installed programs
Processes running at the time of...
[Revision 5/14/09: I need this to target Dotnet 2.0 because of my deployment scenario]
I am new to Dependency Injection & IoC.
I see that there are a plethora of containers and libraries to help the process along.
What are the pros and cons of using these libraries. What is your favorite (dotnet) container and why?
What about rollin...
We decided to use Linq To SQL for our Data Layer on our most recent project. We have a functional solution, that so far has handled everything we have thrown at it, with one major problem. We have to code the same method over and over again to retrieve just slightly different result sets from our database.
As an example:
pu...
I am working on porting some C++ code to managed .NET. I will need to retain some C++ code in native form, and trying to use an IJW approach to it. I know it's possible to declare an unmanaged struct so that it will get correctly marshaled to .NET code, but C++ compiler doesn't seem to do it.
For example I have this code (managed):
str...
I'm working with .NET strongly-typed datasets and have a table with a nullable int column (and a nullable DateTime column as well).
Apparently there is a bug with the dataset designer that prevents having nullable columns on these data types. The designer only allows "throw exception" as the default behavior for null values. Unfortuna...
I'm working on a multi-monitor kiosk application that needs to run full-screen on both monitors. I'm using C# and the standard winforms library. I've used a full-screen method for a single monitor with success, but I don't know how to get it full screen on both monitors.
...
I'm looking into adding some flexibility to a class that I've created which establishes a connection to a remote host and then performs an exchange of information (a handshake). The current implementation provides a Connect function which establishes the connection and then blocks waiting on a ManualResetEvent untill the two parties have...