Visual Studio 2010, .Net 4.0
Я создаю несколько классов доменных служб, и вот как Visual Studio включает пространства имен:
namespace MyCoolProject.Web.Services
{
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Data.Linq;
using System.Linq;
using System.ServiceModel.DomainServices.Hosting;
using System.ServiceModel.DomainServices.Server;
using Columbus.Web.Data;
using Microsoft.ServiceModel.DomainServices.LinqToSql;
// Implements application logic using the JanDoetsDataContext context.
// TODO: Add your application logic to these methods or in additional methods.
// TODO: Wire up authentication (Windows/ASP.NET Forms) and uncomment the following to disable anonymous access
// Also consider adding roles to restrict access as appropriate.
// [RequiresAuthentication]
[EnableClientAccess()]
public class AnnouncementService : LinqToSqlDomainService<MydataDataContext>
{......................
пространства имен, необходимые этому классу, включены в объявление пространства имен, другими словами, строки using bla bla bla находятся внутри объявления пространства имен MyCoolProject.Web.Services, а не снаружи. Это новое соглашение или ошибка vs2010?