public Class CreateClass() { Class c = new Class(AccessModifier.Public, this.UserDefinedTableType.Name); c.Modifier.Partial = true; c.BaseClass = new TypeName(String.Format("UserDefinedTableType<{0}.Record>", this.UserDefinedTableType.Name)); var factory = new UserDefinedTableTypeRecordClassFactory(this.UserDefinedTableType); c.Classes.Add(factory.CreateClass()); c.Methods.Add(CreateCreateDataTableMethod()); return c; }
public Class CreateClass() { Class c = new Class(AccessModifier.Public, this.UserDefinedTableType.Name); c.Modifier.Partial = true; c.BaseClass = new TypeName(String.Format("UserDefinedTableType<{0}.Record>", this.UserDefinedTableType.Name)); var factory = new UserDefinedTableTypeRecordClassFactory(this.UserDefinedTableType); c.Classes.Add(factory.CreateClass()); c.Methods.Add(CreateSqlDataRecordMethod()); return(c); }