Im using MVC-Viewmodel, EF Model first on my project.
I have a foreach loop that generates 4 tables inside my view. I want that each table that generates gets an unique ID. I guess that I have to do this inside my ViewModel.
Any kind help is appreciated All I know is that I need to declare something like this inside my foreach loop:
<table id="RandomID_@("MyRandomProperty)">
and probably a property like this:
public random MyRandomProperty {get;set;}
Thanks in advance!
You could use a Guid: