private void setSubParams(NrdoCommand cmd, Identifier parent, Identifier child) { cmd.SetString("ptype", "varchar", parent.ObjectType.Name); cmd.SetString("pname", "varchar", parent.Name); cmd.SetString("type", "varchar", child.ObjectType.Name); cmd.SetString("name", "varchar", child.Name); }
// string -> String public static void SetStringParameter <T>(this T dbobject, NrdoCommand cmd, string name, string dbType, string value) where T : DBObject <T> { cmd.SetString(name, dbType, value); }
private void setRootParams(NrdoCommand cmd, Identifier identifier) { cmd.SetString("type", "varchar", identifier.ObjectType.Name); cmd.SetString("name", "varchar", identifier.Name); }