Hi,
Is it possible to override an attibute set on a partial class?
So I have one autogenerated partial class like this:
[Table(Name="dbo.Users")]
public partial class MbsUser : INotifyPropertyChanging, INotifyPropertyChanged
{
This is generated in my DBML. The problem is, I don't want my class to use this table. I've created a view called "dbo.ActiveUsers" and would like this to be used instead (to keep out deactivated users).
I've tried creating another partial class with the same attribute as follows:
[Table(Name = "dbo.MbsUsersActive")]
public partial class MbsUser : IEquatable<MbsUser>
{
But I get the error:
Duplicate 'Table' attribute
Any help?
Thanks!
-Ev