I have an abstract class and two sub classes. Can asp.net ensure that each subclass has a unique ID when a record is created. For example:
Sub Class #1
1
3
Sub Class #2
2
4
Your help is kindly appreciated.
Thank You.
I have an abstract class and two sub classes. Can asp.net ensure that each subclass has a unique ID when a record is created. For example:
Sub Class #1
1
3
Sub Class #2
2
4
Your help is kindly appreciated.
Thank You.
What exactly do you mean by unique ID? Seeing you mention creating a record are you referring to when you insert the data in a database? As these are sub classes and inherit methods from the super class, any code that guarantees uniqueness should be handled in the super class.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.