/// <summary> /// Generates C# code of the model. /// </summary> /// <returns>C# code.</returns> public string ToCode() { var cg = new CodeGenerator(this); return(cg.ToCode()); }