Before adding “stuff” into nopCommerce, a good understanding of “How things work” is a must!
Excellent tutorial Vlince. Thanks
Do I need to put anything in the Mapping file?
I understand the "this.HasKey" for the Primary Key, but the Table I'm using has a two-field Primary Key :
this.HasKey(pc => pc.?????);
Here is the Table :
CREATE TABLE [MemberEvent]( [MemID] [int] [EventID] [int] [Active] [bit] ,
CONSTRAINT [PK_MemberEvent] PRIMARY KEY CLUSTERED
)WITH ON [PRIMARY]
) ON [PRIMARY]
ALTER TABLE [dbo].[MemberEvent] WITH CHECK ADD CONSTRAINT [FK_MemberEvent_Member] FOREIGN KEY([MemID])
REFERENCES [dbo].[Customer] ([Id])
Plus I have a foreign key going to the Customer table.
Not sure how to implement this.