Using C# classes/structs in SQL Server -
is there way can declare instances of .net class or struct in sql server stored procedure and/or use them parameters in function? i have .net method takes 2 instances of unitofmeasure class , converts value 1 unit other. my .net class looks following. i've omitted lot of code sake of brevity... public class unitofmeasure { public static unitofmeasure gram {get;} = new unitofmeasure("gram","g",unittype.mass, 0.001, 0); public static unitofmeasure kilogram {get;} = new unitofmeasure("kilogram","kg",unittype.mass,1,0); ... public static ienumerable<unitofmeasure> namedunits {get;} = new list<unitofmeasure>(){gram, kilogram, ...}; public string name {get; private set;} public string symbol {get; private set; } public unittype {get; private set;} public double standardunits {get; private set} public double standardoffset {get; private set} public unitofmeasure(string name, st...