Hi, We might want to use Entity Framework 4 for a project. Everything that we need is in the context. We have a couple of guys working on this project, how do we all work on the model if it creates just 1 file? Is it possible to add additional properties to a class that was created? Also, how would I use classes that I have created already in my project? Lets say I have a User class and a User class that the EF creates, what now? Thanks
Brendan Vogt
Posts
-
More than one programmer working on the EF4 model file -
What does clean do?Hi, I am using Visual Studio 2010. When I right click on the solution there are different options like Build, Rebuild and Clean. What exactly does clean do? When do I need to use it? Thanks Brendan
-
Static values keeping their instance after stopping the debuggerThanks for the reply. I'm actually testing a singleton that was written to retrieve global values. It's the first time I am working with singleton so I am debugging to see how it works. The first time I ran it I got the instance of the singleton object, then I stopped it. I ran it again, and it doesn't go into the property where it returns the singleton's instance. I am using VS2010. Thanks
-
Static values keeping their instance after stopping the debuggerHi, I am debugging through a web application that was written in C#. When the app loads it gets some values using static methods. Whenever I stop the debugging and run it again then it doesn't go into these static methods again as they are static. I want to kill this static variable instance so that I can debug through these methods again. I have stopped the web server in VS2010, but it doesn't work. I hope I am making sense? :) Thanks
-
Singleton Pattern AlternativeHi, My apologies for posting it here, but using it to get settings values was just an example. It was posted here because I had some questions regarding the design of the pattern. The main issue that I have is that there is some difficulty in unit testing it. How does one go about unit testing a singleton pattern, and testing all the methods in the .Instance property? Lets say I have something like: BlogSettings.Instance.Name How would I unit test .Name?
-
Singleton Pattern AlternativeHi, I am new to the singleton pattern. I read that it could be used to load all your website setting and configuration values. I also read that people avoid singletons, and people that do unit testing don't use singleton patterns. Why is this? Are singletons good to use in my scenario? If not, how should I do it then? And how can this be unit tested? Thanks Brendan
-
Data Modeling ToolsHi, I'm working through the The Data Model Resource book volume 1, and I want to know how to draw data models in Visio 2010? I don't want tables, I want to be able to put entities on a form, and do relationships between them. Is this possible? What are good data modeling tools? Brendan
-
Len Silverston: The Data Model Resource BookHi, Has anyone read the book called The Data Model Resource Book by Len Silverston? There is 3 volumes. Is it any good? The data models that he describes, is it still a valid model to use, or is it outdated? Any other data models that are worth mentioning? Thanks Brendan
-
What does mutually and non mutually mean?Thank you :)
-
What does mutually and non mutually mean?Hi, I'm reading a book on data models, there is a piece of text that reads as follows: The subtypes within an entity should represent a complete set of classifications (meaning that the sum of the subtypes covers the supertype in its entirety) and at the same time be mutually exclusive of each other. What does this mean? Examples will be much appreciated. Thanks Brendan
-
Singleton PatternSearch for BlogEngine.NET on Google.
-
Singleton PatternHi there, I am looking at the singleton pattern as described by www.dofactory.com. There is also a web project that I am browsing, and it sets all the basic stuff of the website by using the singleton pattern. It sets stuff like the page title, meta tags, javascript, etc etc etc. When does the static methods in this single pattern get disposed? Once no one is using the website, or when the current user's session is over? Why set the website settings using a singleton pattern? They mention thread safety as well, what is this and how does it relate to the singleton pattern? Regards, Brendan
modified on Friday, May 14, 2010 3:35 PM
-
Menu Links In Master PagesI'm not looking to use it as a menu. I have links across that are used over all pages irrespective where you, so menu control will not work. Like for example Contact Us, Terms and Conditions, etc. How would I do these links? I can use html links like I showed in my example, but how do I get the href part correct as "../" won't work. Please can someone advise?
-
Aspect Oriented Programming for BeginnersHi, Has any one used AOP yet? What's the use of doing it this way? Any helpful articles with some decent tutorials/explanations for beginners? Regards, Brendan
-
MS SQL Server Not Updating Column NamesAndy_L_J wrote: Right Click the Tables branch in the Server Explorer. Click Refresh. Nope this does not work. Andy_L_J wrote: Open the branch for the changed tables - have the changes taken? Where do I find this? Andy_L_J wrote: On the Edit Menu - Click on Intellisense/Refresh Local Cache. There is no intellisense option from which to choose. From where are you directing me, from SQL Server Management Studio 2008?
-
Database NameThanks
-
Database NameIt blue probably because they are keywords, but why isn't Name on the keywords list, if they are not there then how do I know that it is a keyword?
-
Database NameThanks for your reply, but I don't see Name anywhere in that list. Description is also blue so I am assuming it is a keyword as well, but I don't see it either in that list. BTW, what does IMHO and IIRC stand for?
-
Menu Links In Master PagesHi, I'm trying to setup my menu links in my master page so that it can be used by all pages irrespective how far down the page hierarchy you are. I haven't done this in ages, I know it is something like: <a href="<% "~/Product/Default.aspx" %>">Home</a> Please can someone advise. Regards, Brendan
-
MS SQL Server Not Updating Column NamesHi, I am using MS SQL Server 2008 Express. I have a product table with columns Id and Name. I changed these columns to ProductId and ProductName. In my stored procedure it's not finding ProductId and ProductName, but rather Id and Name. And now it underlines ProductId and ProductName in red. How do I update it so that it sees these columns? Regards, Brendan