Microsoft Technologies based on the .NET software framework. Miscellaneous topics that do not fit into specific categories.
Hi AgronSverkaj-2961,
You can add methods to a model via Partial Classes.
In other words, you can create another file that contains another portion of the Partial Class definition (with your additional methods).
Code looks like:
public partial class Employee
{
public void LoadData()
{
//
}
}
More details you can refer to this document.
Best Regards,
Daniel Zhang
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.