P
Paulo Monteiro
I have some doubts about object oriented development using
COM+.
To use COM+ my classes must inherits from
System.EnterpriseServices.ServicedComponent. With C# a
class can inherit only from one class. This means that I
can't have these classes:
public class Order
{
public virtual void Create()
{
// insert a record in orders table
}
}
public class SpecialOrder : Order
{
public void Create()
{
// create a order
base.Create();
// Process the special order by example
// approve the order. Insert another table.
this.Approve();
}
}
Any suggestions?
I think in use ADO.Net transactions but with this solution
I don't need COM+ for anything.
Thanks in advanced,
Paulo Monteiro
COM+.
To use COM+ my classes must inherits from
System.EnterpriseServices.ServicedComponent. With C# a
class can inherit only from one class. This means that I
can't have these classes:
public class Order
{
public virtual void Create()
{
// insert a record in orders table
}
}
public class SpecialOrder : Order
{
public void Create()
{
// create a order
base.Create();
// Process the special order by example
// approve the order. Insert another table.
this.Approve();
}
}
Any suggestions?
I think in use ADO.Net transactions but with this solution
I don't need COM+ for anything.
Thanks in advanced,
Paulo Monteiro