Practical Application Of Convention Vs Configuration

Apr 18, 2010

but here's a case in point that I'd like to share and get input on. Below are two entities, coded like normal.

Csharp Code:
using System.Collections.Generic;using SharpArch.Core.DomainModel;namespace Venue.Core{public class Category : Entity{private virtual IList<Forum> forums = new List<Forum>();public virtual int Sequence { get; set; }public virtual string Title { get; protected set; }public virtual string Description { get; set; }public virtual bool Enabled { get; set; }public virtual bool Visible { get; set; }public virtual IEnumerable<Forum> Forums { get { return forums; } }public void AddForum(Forum entity) { forums.Add(entity); }public void RemoveForum(Forum entity) { forums.Remove(entity); }public Category(string title){Title = title;}}}
[code]...

View 10 Replies


Similar Messages:

Practical Limit Of A Textarea?

Jan 14, 2011

Using IE6+, what is the maximum amount of text you can POST with a <textarea> before something breaks?

Edit: The answer I'm hoping for is "there's no way you could actually type something meaningful and unmallicious into a textarea and crash Internet Explorer."

View 3 Replies

Practical Advantages Of Precompiling A Website?

Mar 15, 2011

What are the practical advantages of precompiling a website?

View 3 Replies

DataSource Controls :: SSIS And SSRS Practical Use?

May 13, 2010

want to know about SSIS,SSRS and what is the use of them,how to use them practically

View 3 Replies

ADO.NET :: Practical Technique For Dealing With Null Entities?

Feb 27, 2011

In my new ASP.NET EF4 project, I find myself having to do a lot of maneuvering around null entities. For example, I may have a Project Entity with a related User Entity exposed through an Assignee property. Suppose I need to send an email to someone indicating who the Assignee is, I need to say:string x = "The Assignee is: " + TheProject.Assignee.Name;but I'll get an exception if there is no Assignee as the property is null (I want nulls by design) and I can't fetch the .Name property on that null.

View 4 Replies

Databases ::asp.net 2010 And Mysql Are Practical For 10 Million Records ?

Aug 12, 2010

I am developing a large e-commerce system.

I am using asp.net 2010 with mysql database. Is it practical for large amounts of data ? say 10 million records ? cuz some people said to me that using this combination, i'll be having performance issues as database grows.

View 4 Replies

Efficiency - NamingContainer Naming Convention?

Mar 1, 2011

I'm working on a project in which the client has required a lot of things to happen on a single page, and this has resulted in a rather large blob of HTML being rendered out to the client browser.

The main issue is with input tags (where runat="server" attribute is set), these tend to cause a drastic increase in markup size due to validation, updatepanel triggers, viewstate, and the control markup itself. I've done what I can to reduce the amount of triggers I'm using, I'm compressing the viewstate (to something like 8% of the original viewstate size), I've gotten rid of a lot of ASP.NET Validators and rolled my own, and and I've been using ClientIdMode to reduce the length of the ID attributes of many asp.net elements. All of these combined significantly reduces the amount of HTML being sent to the client, (for example going from 2 megabytes for a request down to 500-600 kb - these are HUGE pages, mind you).

[Code]....

View 2 Replies

Changing The CreatedBy Convention In Subsonic (3x)?

Mar 7, 2011

I'm working against a database that wasn't designed by me and in all the tables there is a CreatedBy field that is an int. Now when I generate against this db i get all kinds of errors because subsonic is expecting that field to be a varchar.I don't particularly want to go and rename the field in all of these tables so I was hoping there was a way to "alter" or change the internal convention (without getting into the source) in subsonic.Has anyone been able/done this in subsonic 3.0.4??EDIT: I'm using the active record model in subsonic 3

View 1 Replies

Loop Through Controls That Follow A Naming Convention?

Jan 12, 2011

I have ten textboxes (txtCO1, txtCO2... txtCO10).I need to set them all to the same text (blank). How can I use a for loop that just changes the number after txtCO, isntead of explicitly setting each text box's text property to ""?

View 6 Replies

VS 2008 - Naming Convention For Files And Folders

Oct 24, 2014

Is there a recommended naming convention for files and folders in ASP.NET? So far, I've found this thread on the native ASP.NET forum. But it doesn't sound very useful. Some people say "meh, naming convention is not that important", others reply "no, naming conventions are important" but don't say what the recommended convention for ASP.NET actually is.I can use standard VB notation for variables and method names inside the files.

View 2 Replies

FluentNHibernate Convention/:Could Not Find A Setter For Property Children

Jul 25, 2010

Here's mt entity:
Csharp Code:
using System;using System.Collections.Generic;using System.Linq;namespace Venue.Domain{ using Venue.Infrastructure.Domain; public class Forum : Entity { private IList<Forum> children = new List<Forum>(); private IList<Moderator> moderators = new

[code]....

Here's my class map:

Csharp Code:
using FluentNHibernate.Mapping;namespace Venue.Persistence.Mapping{ using Venue.Domain; public class ForumMap : ClassMap<Forum> { public ForumMap() { Id(x => x.Id); Map(x => x.Sequence); Map(x => x.Title);

[code]....

And here's my convention:

Csharp Code:
using FluentNHibernate.Conventions;using FluentNHibernate.Conventions.Instances;namespace Venue.Persistence.Mapping.Conventions{ public class ReferenceConvention : IReferenceConvention { public void Apply(IManyToOneInstance instance) { instance.Column(instance.Property.Name + "Id"); } }}

I get the following message:Could not find a setter for property Children ...

View 2 Replies

Directive Convention For Declaring Client-Side Includes?

Mar 10, 2011

I am loading .aspx and .ascx files as StreamReader.

I want each file to register it's javascript and stylesheet dependencies in some declaration like a <%@ ClientDependency path="~/Scripts/jquery-1.4.1.min.js" %>.

Is there an existing convention for doing such a thing? I don't need an implementation, but I don't want to create a new syntax if there is already a way to do it.

Also, what are the guidelines for custom <%@ blocks in ASP.NET?

View 3 Replies

Configuration :: Application Configuration With Sticky Session On WebForm

Dec 8, 2010

We are going develop a web application using asp.net. This applicaton is going to server 50 users per day and 40 users concurrently. As the user count is less, we are planning to have two webservers clustered under a webfarm. We are planning to go for a Sticky Session. Netscaler is the load balancing and reverse proxy we are using at hardware level to route to the same webserver till the end of the client session.

1. Do I need to implement any handler at asp.net level to route the session or to provide browser cookie details of session to NetScaler? If so, what should be implemented in detail. Any sample code will also be helpful.

2. I need to maintain a big chunk of object information in session. Does a webserver can handle it?

3. At the hardware level how ReverseProxy works to navigate it to the same webserver? I want conceptual details of it from a web application end.

View 3 Replies

Configuration :: Deploy Application That Uses Application Services Membership Provider

Aug 25, 2010

Apologies if this seems obvious, but after a week searching I can't find a clear answer to my problem.

I have developed an application in Visual Web Developer 2010 Express that uses the asp.net application services membership provider. It works well in development on my machine (data in the ASPNETDB.MDF database).

I packaged my application and deployed the relevant files with FTP to my shared hosting provider.

I took a copy of the ASPNETDB.MDF and restored it to the SQL Server 2008 on my shared hosting. I can connect to this through the Database Explorer in Visual Web Developer, but it doesn't contain any schema or data.

I know once I have the database in production I will have to make sure the connection string in web.config is poiting to it, but I don't know how to get the DB to production in the first place.

View 2 Replies

Configuration :: Best Configuration Of Iis7 And Webconfig For Application

Feb 19, 2011

i have my own cloude server. with iis7(OS:window server 2008) . i want to deploy my webApplication on that can u tell me best configuration of iis7 and webconfig file for my application.

View 3 Replies

C# - What's The Right Approach To Storing Application Configuration Parameters In Application

Dec 28, 2010

We have lot of application parameters for each module in a C# .NET 4 ASP website. parameter examples: timeouts, formulae constants, thread limits per module, $ charges per usage etc. What is best out of following approaches we know: Use DB config table Use an xml. load that xml into local cache on start (and on xml change) simple constants.cs file with public const int XYZ = 123; type of key-value pairs. web.config (though i think its mostly for deployment type of config)

View 7 Replies

Web Config - Share Configuration Between Console Application And Web Application

Jul 26, 2010

I have a web.config file defined in my asp.net web application. I have many different settings configured there. I have another project, this time a console application. I'd like to read several configurations from my web.config file. How can this be done?

View 1 Replies

Configuration :: How To Deploy An Application Containing A Website And Console Application On IIS

Jul 20, 2010

I have an application which has a website and a project. The project contains an executable file which I'm trying to run as a process from the website's Global.asax file's application_start(). When I run this application from localhost, everything runs smoothly but when I deploy the application on IIS, application_start's code is executed and I can see the process name in the taskmanager but I cannot see the window which the console application normally starts in (when i run the application on localhost) and neither is the code executed.

Here's what I'm doing:

-- copied website and project in wwwroot
-- made a virtual directory of the website
-- when i run the website, I see the process in taskmanager but the code is not executed.

I am new to deployment and IIS, and would really appreciate I someone could tell me what i'm missing

View 2 Replies

IIS Configuration :: Web Application Not Getting Displayed After Configuration

Jun 20, 2012

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below

I published the web application & set virtual directory in IIS but when i run the application i get the above error

HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.

View 1 Replies

Configuration :: Set Application Path To Run Application From Anywhere

Sep 8, 2010

Am currently work on web application..sometime i need to run my project files from diffrent computers. everytime i run my application in different computers i have to set up data source connection. how can i avoid it? can i run the project from anywhere without set connection to database?how to make it?

View 2 Replies

Configuration :: Compile .Net Application From Another Application?

May 25, 2010

How to compile .net application from another .net application programeticaly using C#.

View 1 Replies

Configuration :: How To Use Web Application In Lan

Jan 24, 2011

i created a sample web application in asp.net . and i have to use that application in Lan .what are the steps to use this application in lan ?

View 7 Replies

Configuration :: How To Put Web Application On The Web

May 12, 2010

How can i put my web application on the web

View 6 Replies

Configuration :: How To Deploy Web Application

Aug 1, 2010

I developed a web application using VS2008 and sql server2005. I don't know how to make my project live. I got the domain name also. But i don't know how to deploy. I don't know how to copy in that.I'll give you the details also to access the ftp. how to upload in it. I want the correct instruction to deploy the application.

View 8 Replies

Configuration :: Deploy Application On Iis 5

Mar 16, 2011

i'm struggling with this error for hours... i have an application that uses sql server express ,entity framework and was built with web developer. when i try to browse the app i get a: The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid.

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved