What is the difference between design and architectural patterns
Hi, What is the difference between design patterns and architectural patter? How they are different? What are different types of Architectural patterns? ...
Hi, What is the difference between design patterns and architectural patter? How they are different? What are different types of Architectural patterns? ...
Ok, this may not be related to EF. I am trying to use the code-first feature and following is what I wrote:- var modelBuilder = new ModelBuilder(); var model = modelBuilder.CreateModel(); using (AddressBook context = new AddressBook(model)) { var contact = new Contact {...
Hi Every, How can i consume the restful api(like the basecamp)from my .Net applications. ...
I haven't deployed the application yet. I'm new to this, how can i create folders under C:\Programs Files during installation? Should i put the snippet of creating folders in program.cs? The application is Winform in C# ...
Hi everybody, I am going to create a corporate site with around 150-200 pages. Several pages have three category levels (I mean a URL like products/myproduct/overview) The client's employees should be able to edit all the pages very easily, manage the navigation and left blocks as well. What CMS (opensource, if possible) can I use? PHP...
Basically, what I want to do, is: public class MySpecialCollection<T> where T : ISomething { ... } public interface ISomething { public ISomething NextElement { get; } public ISomething PreviousElement { get; } } public class XSomething : ISomething { ... } MySpecialCollection<XSomething> coll; XSomething element = coll.G...
I have the following code inside a bigger loop, after profiling my code I discovered that all the Parallel.For gain in execution speed is lost in the long time the Stop() method takes to complete. Is there any way to improve this? Maybe calling Thread.Sleep()? Thanks. Parallel.For(0, 1000, (i, loopState) => { if (a == b) lo...
I tried using WriteEntry and WriteEvent methods of EventLog class. EventLog.WriteEntry("Saravanan", "Application logs an entry", EventLogEntryType.Information, 2, 3); EventLog.WriteEvent("Saravanan", new EventInstance(2, 3), "Application logs an event"); Both output the same result. Is there any difference in usage of these methods?...
What is implicit and explicit implementation of interfaces? In which scenario it uses? why its need ? in dot net ...
How do I configure a C# program to run when the operating system is first started? ...
I'm using the DevExpress LookupEdit control in my C# application. How do I remove the selected item from the LookupEdit? ...
Hi, I want to execute stored procedure with one parameter that returns table using EF4 "Code First". I am ok with some DTO just for this purpose, it doesn't have to return entities. I have tried to: a) create edmx file with function import and add it to my ObjectContext like this: protected override void OnModelCreating(ModelBuilder m...
The error message :- "The model backing the 'AddressBook' context has changed since the database was created. Either manually delete/update the database, or call Database.SetInitializer with an IDatabaseInitializer instance. For example, the RecreateDatabaseIfModelChanges strategy will automatically delete and recreate the database, a...
Hi, I have a WCF service, in it i have a method that takes a MessageContracts as input parameter and returns a MessageContract as out parameter. Please find the method defination below [OperationContract(IsOneWay = false)] FileDownloadReturnMessage DownloadFile(FileDownloadMessage request); But when i create the proxy on the client a...
I have added a partial class to one generated by the Entity Framework. I wanted to add a calculated field that I could bind to my GridView. However, when I try to access the new property, I get an error message that this is a limitation to Entity Framework. Are there any work arounds to accomplish this? ...
My build server suddenly stopped working. After I examined log files I found monster error message: error MSB4018: The "ResolveComReference" task failed unexpectedly. error MSB4018: System.ApplicationException: The directory name is invalid. (Exception from HRESULT: 0x8007010B) error MSB4018: error MSB4018: Server stack trace: er...
For the last 3 hours I've been trying to figure out how ADO.NET works with no success. Could someone point me at a great tutorial or somethign similar? I am trying to build a DB from scratch and working with it in my WPF program. I have worked before with JDBC and sqlite but I didn't find a tutorial from zero to a DB where I can connec...
At the University we teach .NET (both VB and C#) using Windows Forms. We want to introduce the concept of Windows Presentation Foundation (WPF) to our advanced course. Which fundamentals of WPF does students need to learn in order to get the basic knowledge of WPF? The idea is for student to use WPF in at least one of six assignments, ...
What is the closest equivalent to Qt's QFormLayout in .NET? ...
Can someone tell me why my footer is not showing up when i databind the gridview below to a datatable which contains information in the totalMaxScore column. The itemtemplate is working i.e. bind to ActualScore but the footer bind is not??? <asp:GridView ID="tstGrid" Width="60%" runat="server" AutoGenerateColumns="False" CellPadding="4...