NHibernate and Life Cycle Events
Can someone give an example to what Ayende is talking about in item #17 on his list of 25 Reasons Not To Write Your Own Object Relational Mapper Is this something that ADO.NET Entity Framework can do? ...
Can someone give an example to what Ayende is talking about in item #17 on his list of 25 Reasons Not To Write Your Own Object Relational Mapper Is this something that ADO.NET Entity Framework can do? ...
I have some code, which calls the form.ShowDialog(IWin32Window) overload rather than the form.ShowDialog() one, but which passes in the current active window as the parameter. Using the other overload seems to leave the behaviour intact. Is it safe to switch to the simpler overload? When would I want to pass in the IWin32Window paramete...
I don't intend this to be subjective, but if the answers can be seasoned a little with advice or direction I would appreciate it :) Over the past couple years my job has been to develop and now maintain/extend a fairly large application. The application was among the first .NET projects ran by our department and for nearly the whole de...
Is there a way to configure WCF to do guaranteed asynchronous calls (remotely - on different machine)? I.e. something you would implement using some MQ messaging mechanism before WCF era. ...
I've got a DataGridView with a BindingSource binding it to a DataTable. I've put a Delete button on my form and I want it to delete the currently selected row when clicked, something like this: if (dgvResourceSettings.CurrentRow != null && !dgvResourceSettings.CurrentRow.IsNewRow) { bindingSource.RemoveCurrent(); } ...
Using .NET (if I have to use pInvoke or managed C++, that's fine too), I am trying to create a window that sort of docks or snaps to the right hand side of the desktop (like a rectangular strip like the gadget area but a real window). Secondly I want a pushpin-like thing that lets the window slide in and out (like the Windows in VS do) ...
What tools/libraries do you run along with your build to assess and maintain quality? As part of my CI (Cruise Control) builds I run: Simian Nunit Ncover Ndepend FxCop as part of Nant I am looking for tools to instrument complexities, metrics, etc . ...
Hi, I am interested in finding out more about the use of Spec# and/or its spin-off project Code Contracts. Is there a live project that currently makes use of either technology? Thanks, MagicAndi. EDIT: Given David's answer below, I have opened the question up to include any project, not simply open source. ...
What are the fundamental misunderstandings people have when they first start using LINQ? For instance, do they think it is one thing when it is really something else? And, are there some best practices to employ to avoid these mistakes? ...
Is there a way in C# to check if an object is suspend? I have a TreeView that I need to know if it is still suspend. myTreeView.BeginUpdate(); myTreeView.SuspendLayout(); // Do Stuff. myTreeView.EndUpdate(); myTreeView.ResumeLayout(); Because i have this code in a recursive function I want to know if the TreeView is already be...
im wanting to know the fastest way to access my globals... they will only change in the beta testing phase. before we go live. from then on they wont change ever. im thinking that there is an overhead in getting stuff from web.config also its neater code wise to write App.HostUrl instead of ConfigurationManager.AppSettings["HostUrl"].To...
I have an assembly which uses resx files to store all of the display strings. I now want to create a satellite assembly that contains the french versions of the strings. Can this be done in VS? Do I just create a new assembly, name it correctly and include the localized versions of the resx file? ...
Hi, I been trying to find an Free/Open Source XML-FO processor that i could use in .NET applications but i havent had luck finding one. Do anyone know of one that i could use? Thanks in advance. ...
Hi, Im using smart client software factory in our application i created one workspace dynamically,based on that i can create n numbers of views.the view is modal dialog and i have used some window workspace. but the problem is i have to implement save all fuctionalities in menu. but i dont know which view is activated/focused How t...
I am setting up a new blog and looked for a widget I could add that would give me the total number of views for a blog post (and it would be nice to find out the number of views in the last X days) and didn't find any. Is there a quick way of setting this up? ...
I currently have a project that is a 'Business Object' project, and our goal is to have a clear separation between the GUI and the Business Objects. However, my project has a reference to System.Windows.Forms and that's a big red flag to everyone that my project is poorly designed. My problem is that I'm using a 3rd party control calle...
I'm trying to implement following scenario: Client passes it's cridentials to STS. STS applies custom AuthorizationPolicy to determine set of claims available to particular user and issues a secure token. Client passes the token to business services which determine user's priveleges basing on the set of claims they got from the token. ...
I have a WCF service and a Windows client. They communicate via a Duplex WCF channel which when I run from within a single network domain runs fine, but when I put the server on a separate network domain I get the following message in the WCF server trace... The message with to 'net.tcp://abc:8731/ActiveAreaService/mex/mex' canno...
I have the following scenario, with exception being thrown when I try to cast: I added a project reference and imported the project's namespace. The LoadFile line loads the dll that is generated when this project is built. I am trying to access the public field of an attribute that decorates a property of an object from the dll. Here i...
Searching for a library or framework that would provide an object model, parsing, validating, etc The idea would be to be able to spin up a new object of type hl7 v2 or v3. Then perhaps call it message type ORU_R01 or ADT, or ORM. Wouldn't life be great if we were able to do something like this: HL7V2 myMessage = new HL7V2(); myMessag...