public void GenerateServiceMethod(object outObj) { CSharpTypeDef def = outObj as CSharpTypeDef; CSharpMethodDef srvMethod = null; switch (m_Type) { case TableOperationType.Select: srvMethod = new CSharpServiceMethodDef(); GenerateSelect(srvMethod); break; case TableOperationType.Insert: srvMethod = new CSharpServiceTranMethodDef(); GenerateInsert(srvMethod); break; case TableOperationType.Update: srvMethod = new CSharpServiceTranMethodDef(); GenerateUpdate(srvMethod); break; case TableOperationType.Delete: srvMethod = new CSharpServiceTranMethodDef(); GenerateDelete(srvMethod); break; case TableOperationType.SelectAll: srvMethod = new CSharpServiceMethodDef(); GenerateSelectAll(srvMethod); break; case TableOperationType.SelectDispsetAll: srvMethod = new CSharpServiceMethodDef(); GenerateSelectDispsetAll(srvMethod); break; } def.Methods.Add(srvMethod); }
public void GenerateServiceMethod(object outObj) { CSharpTypeDef def = outObj as CSharpTypeDef; CSharpMethodDef srvMethod = null; switch (m_Type) { case AssocOperationType.SelectBy: srvMethod = new CSharpServiceMethodDef(); GenerateSelectBy(srvMethod); break; case AssocOperationType.DeleteBy: srvMethod = new CSharpServiceTranMethodDef(); GenerateDeleteBy(srvMethod); break; } def.Methods.Add(srvMethod); }