Last post Jan 16, 2021 02:40 PM by mgebhard
Jan 16, 2021 08:45 AM|jagjit saini|LINK
objCommon.RecordNavigation("sp_Location", ParamArr, objCommon.SrcType.StoredProcedure);
SrcType : Cannot reference type thru an expressions try Common.SrcType instead.
public class Common
var configuration = GetConfiguration();
Cnn = new SqlConnection(configuration.GetSection("CnnStrings").GetSection("Cnn1").Value);
public enum SrcType
Jan 16, 2021 02:40 PM|mgebhard|LINK
You've asked this question several times and have not followed any forum member's advice.
Still, you placed the enum within a class which is an unusual design, but it works. Normally, enums are organized by namespace.
As explained in your other threads,
Enums are named constants. Therefore, enums are accessed through the namespace or in your design, namespace.class, not the class instance.
objCommon.RecordNavigation("sp_Location", ParamArr, Common.SrcType.StoredProcedure);