title: Implement EntitySet as IList
body: <p>Im playing with LinqToSql and im trying to implement the Repository pattern for one of my classes. The problem  comes when i try to map a property that is EntitySet to IList i get an error </p>
  
  <blockquote>
    <p>'TheCore.Models.User' does not implement interface member 'TheCore.Models.IUserRepository.Vehicles'. 'TheCore.Models.User.Vehicles' cannot implement 'TheCore.Models.IUserRepository.Vehicles' because it does not have the matching return type of 'System.Collections.Generic.IList'</p>
  </blockquote>
  
  <p>The EntitySet seems to implement IList so why can't I map the IList property to the EntitySet property?</p>
  
  <p>The EntitySet:</p>
  
  <pre><code>        [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Users_Vehicles", Storage="_Vehicles", ThisKey="Id", OtherKey="FkOwnerId")]
      public EntitySet&lt;Vehicle&gt; Vehicles
      {
          get
          {
              return this._Vehicles;
          }
          set
          {
              this._Vehicles.Assign(value);
          }
      }
  </code></pre>
  
  <p>The repository interface:</p>
  
  <pre><code>        IList&lt;Vehicle&gt; Vehicles { get; set; }
  </code></pre>