Design Guidelines For Developing Class Libraries?
Jan 18, 2010
our dev shop uses the naming guidelines as laid out in MS's MSDN content "Design Guidelines for Developing Class Libraries". It's a pain though having to refer to this via the web only. Does anyone know if this content is available in PDF or CHM format? My devs are resisting reviewing the webpage and I think sticking a portable file in their face might be more successful.
View 2 Replies
Similar Messages:
Feb 17, 2010
i just want to make sure that i am folling the correct pattern and following the right practice and i have read the book (Wrox.Professional.Enterprise.dot.NET) and based on that book here is what i come-up with my design.
my solution consists of:
Model,
Repository,
Service,
Test,
UI
[Code]....
View 17 Replies
Apr 19, 2010
I am going to develop an application which have approx 1,000,000 uers. They will be from different countries. Can some one give me a high level diagram or design guidlines so my application is scaleble enough to full fill the needs of such huge no of users.My database will be oracle and i will be using framework 3.5.
View 4 Replies
Nov 21, 2010
I have a Solution that has two class libraries. I'm trying to convert the whole solution from asp.net 3.5 to 4.
Right now the libraries are in my Visual Studio 2008 projects folder. I've installed VS 2010. Should I just copy the libraries from the 2008 project folder to my 2010 project folder and open them in VS 2010?
What is the best practices for this? The entire solution is in a single folder in my VS 2008 Project folder, and each application and class library is in their own subfolder.
View 3 Replies
Nov 10, 2010
i wanna learn how to nice appearance my mvc sites. for example i am writing an application vs2010 standart theme of mvc. how can i change css file. do you know nice theme css about this. how can i develope my site design. css knowlange..
View 1 Replies
Jan 22, 2010
Task is to develop class libraries that can be re-use in projects but assambies should be copy righted. By this I mean developer will not give the code of class libraries to the clients yet they will provide the code of there sites/ applications, these libraries will be used just as internal development libraries. I want to make Business Logic Layer, DAL, Business Objects as class libraries
Q1. How I can control unathorised use of libraries ?
Q2. How to make assamlies non extendable ?
Q3. What security measurs I should take on this.
View 6 Replies
Jan 12, 2011
I am starting an MVC application and designing the class libraries structure at the moment. I started off with the following class library structure as below.
[code]....
As there will be about 3-4 developers working on the project I thought it might be useful to split out each section of the application into their own class libraries so each developer can work on a different section without interferring with each other.
In our application we have 5 tabs e.g. Dashboard, Admin, Reports, Editor, Subscribers. Would it be wise to put each tab into its own class library like below.
[code]....
View 1 Replies
Jan 27, 2010
I have a Solution with a web project and some class libraries. The enumerations are in a the enumerations folder within my web project. I would like to make some of the enumerations available to other class libraries within my Solution. Should I just add another class library and call it Enumerations to my Solution so that all class libraries and my web project can access them?
View 3 Replies
May 31, 2010
Is it possible to version a asp.net site like doing so with AssemblyInfo.cs in Class Libraries?
View 2 Replies
Jan 31, 2011
I'm trying to create a data access later using System.DirectoryServices. I'd like to use the MVC 2 framework and have all my views be mostly strongly-typed. Does anyone know any good way to this?
For example I started creating a Group Entity:
public class Group
{
public string DistinguishedName { get; set; }
public string GroupName { get; set; }
}
And an abstract interface:
public interface IGroupRepository
{
List<Group> Groups { get; }
}
I am confused about developing the GroupRepository using the system.directory services. Connecting to a SQL database is easy there are examples everywhere but I have no been able to find any using the System.directory sevices in conjunction with a class using MVC. Has anyone tried to do something like this?
View 1 Replies
Oct 21, 2010
I'm refactoring an old website that has product search code littered throught the codebehind. I'm trying to encapsulate the search logic into its own class so I've created a Product class with a Search() method. I would like some suggestions about OO best practices so that the class is reusable and maintainable. The questions I have are:
- Should I make the search() method an instance method or make it static? For now the class is just really there to encapsulate my search logic
- If I make it an instance method should it return a list of products or should it populate a member property that I can access like p.Search(); var x = p.ProductList;
- The search method requires upward of 7 parameters of different types, what's the best way to provide them?
- pass them all i.e. p.Search (param1, param2, ..., param7)
- create a SearchParams structure in the class, populate it and pass that i.e. p.Search(searchParams)
- Instantiate a Product object and set properties on it that are used by the Search method i.e. p.ID = 123; etc.... p.Search();
I've used variations of the above before but would like to know what's the best way.
View 1 Replies
Jul 21, 2010
What is the use of abstract class design in real time projects
and how to use abstract clases and interfaces
and inheritense concepts
like big shoping portals or content managment,blogs etc
View 5 Replies
May 5, 2010
I want to create a LINQ DataContext Class as per Database Design. I getting a problem in some cases.
the syntax to bulid a LINQ class :
[Code]....
Here Table Name Is HardCoded But I my case my Table Name A Changed as Finicial Year Change.So How I Give The TableName As RunTime
View 8 Replies
Jun 1, 2010
use a textbox and the AutoCompleteExtender to search for the customer. For example, on the PurchaseOrder form, I have a textbox with a Customer field, and when I type in the name of the customer, the AutoCompleteExtender shows the possible matches.Now, it takes a few seconds to show the list of values, even with setting the correct values on the extender, and if the user types in the name of the company, e.g. Contoso, and leaves the textbox, there might be 2 Contoso's in the database. The AutoCompleteExtender does not continue when the user leaves the textbox, thus the CustomerId is not determined yet.
View 1 Replies
Nov 13, 2010
I want to implement poll in my website and its a public available website so any one can vote. I want to know which might be the best option for creating poll. In my opinion there is only cookies in which i can store information and check if this user has submit a poll. My website is multi-lingual and im using Asp.net-mvc 2
View 2 Replies
Mar 19, 2010
I've Googled, Binged, and here at StackOverflow, looked through the related questions and searched, but I'm not finding what I'm looking for. I've also searched documentation on DNN.
What I'm looking for is any guidance (tutorials, blogs, step-by-step instructions for setting up a repository) etc from people who are experienced in using DotNetNuke with SVN.
We use SVN for all our source control, and have no problem with standard applications, because we pretty much built the repository and directory structure to work with our processes. This means when we do web sites, in Visual Studio, we do file based web sites, rather than setting them up in the local IIS. It just makes things easier for us.
However, with DNN, it appears that even if you get the source code, it is expecting to be set up in the local IIS, which means additional headaches for us.
For example, we are moving all of our source code off our local C drives, and onto a shared drive on a server. This is to enable backups in addition to our normal source control. (This was a management decision). So that means that we need to change the virtual web app when we make the move.
Has anyone come up with a good way to work around this? Can DNN be set up so that the developer web server in Visual Studio can be used, so that we can treat it just like any normal web app? Am I missing something obvious?
View 1 Replies
Nov 25, 2010
What are the best practices for making a hosted cms? I'm trying to make one with url rewritting.. Currently I can access the different sites with a foldername after the domainname, but I would like to hook up another domainname "subsite.com" to mainsite.com/subsiteI have tried talking to my webhost, but they couldn't help me with it, when the subfolders dont actually exist (the url are rewritten to the sitecore)
View 2 Replies
Nov 8, 2010
I've built a facebook like application where users can upload at most 10 images. I also have a search function for managers. I think I need to create som views and index the tables, but before I do that I'd like some pointers or tips on how to do this.I don't think we will get more than a couple of thousand users and...I have a few stored procedures that joins the users table with the items table to get items from a specific user. Would this be a good situation to create a view? Do I index this view too even if both tables are indexed already?
View 6 Replies
Jul 27, 2010
I have a class called EditMapUtilities. Here are some class properties that I want to persist:
public class EditMapUtlities
{
public static Boolean isInitialEditMapPageLoad
{
get { return SessionHandler.isInitialEditMapPageLoad; }
set { SessionHandler.isInitialEditMapPageLoad = value; }
}
// REST OF CLASS NOT GERMAIN TO DISCUSSION AND OMITTED
}
Here is my SessionHandler Class following the pattern from this post Static Session Class and Multiple Users:
using System.Web.SessionState;
public static class SessionHandler
{
private static HttpSessionState currentSession
{
get
{
if (HttpContext.Current.Session == null)
throw new Exception("Session is not available in the current context.");
else
return HttpContext.Current.Session;
}
}
//A boolean type session variable
private static string _isInitialEditMapPageLoad = "EditMapInitialPageLoad";
public static bool isInitialEditMapPageLoad
{
get
{
if (currentSession[_isInitialEditMapPageLoad] == null)
return true;
else
return (Boolean)currentSession[_isInitialEditMapPageLoad];
}
set
{
currentSession[_isInitialEditMapPageLoad] = value;
}
}
}
I am still learning OOAD. I want to keep relevant properties with relevant classes. I also want to keep all Session stored variables in one place for ease of maintenance and to encapsulate the session keys and calls. I feel like my design is too coupled though. How can I make it more loosely coupled? Is my editMapUtilities class too tightly coupled to the SessionHandler class? How would you do it better?
View 2 Replies
Oct 12, 2010
I have an application that allows admins to add types such as document types and training types that are in seperate tables with a foreign key in a transaction table.
When structuring my class I decided to go with an abstract-like pattern (without the factory methods though). So I have a Type abstract class that defines my Save, Delete, and GetList methods. I have a training type class that inherits this class. The thing is all types have 3 main properties - defined in the abstract base - but have different source tables and thus different store procedures in my DbCommand object. So basically I repeat setting up the same parameters on all the derived classes. I would like to implement the common stuff in the base but I am getting thrown off by the difference in data sources.
View 2 Replies
Jun 25, 2010
is it possible to display vertical guidelines linking matching braces on VS 2008 or VS 2010? Notepad++ does it view, but i cant find a way to replicate this on VS.
View 2 Replies
Feb 23, 2010
can't connect to sql 2005 express sp1 and vs is also sp1. 2) Which my guess is because of the database connection not being able... design view is not able to pull in the application for design, it's as if there is no theme and css just white background and black print.
View 1 Replies
Sep 9, 2010
I have a library that is meant to be used by many websites. The way I am doing it now is in the library's properties, I set the "Post-build event command line" to: copy "$(TargetPath)" "$(SolutionDir)MyWebsitein$(TargetFileName)"
Every time I want a new website to use the shared library, I add a new line like this: copy "$(TargetPath)" "$(SolutionDir)MyWebsite2in$(TargetFileName)"
Is there an easy or better way to do this besides using the GAC?
View 1 Replies
Feb 27, 2011
I installed Rad Controls. Using that controls, I designed my application pages. At design time, the design is not visible. It shows the following error:
RadTabStrip1Failed to create designer 'Telerik.Web.UI.RadTabStrip, Telerik.Web.UI, Version=2010.1.415.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4'
View 2 Replies
Jan 19, 2010
We have an application coded in .NET 1.1. We plan to upgrade to .NET 3.5
But there are few core libraries written in .NET 1.1 that we use from other groups.My question is will our 3.5 app can still reference those 1.1 libraries? Or do we have convert them also to .NET 3.5?
View 3 Replies