<< back to Chapleau.info

July 2005 - Posts

No references from the Serialize Attribute, but you cannot set the Serialize attribute on events, but hopefully there is a way to do it, [field:NonSerialized]. For my curiosity I've search MSDN on that... guest what, I've only found 2 article related to this, and it's not in MSDN, is in MSDN Magazine.

-f.

First take backup, if it's too big because you don't take it correctly...

... after that, try this ;)

BACKUP LOG database WITH TRUNCATE_ONLY
DBCC SHRINKFILE (log_file,10)

Yes, for everything, like the java "super." you have the "base." in c#. But have you try that in the constructor? It didn't work! What's happenning, is it a big lack? No, it's all in the notation, maybe it is because they did not want you to call the base constructor at the moment you want.

Here is the notation

public class MyBaseClass{

      public MyBaseClasse(string NewString){

         // Some Work

      }

}

public class InheritedClass{

      public InheritedClass(string SecondNewString) : base(SecondNewString)

      {

         // Some Other Work

      }

}

Ref.: http://www.csharphelp.com/archives/archive65.html

-f.

Service Oriented Architecture is gaining importance these days. After looking at it a little, I have found (with a "little" help of google ;) a detailed explanation on the way to implement SOA and how to do it with the .NET Framework (even a response to the question why should I use that)

The basics of SOA is that everything is a service, and you just have to interact with the manager to do what you want. The give an extra layer of abstraction and reusability that is a must with all distributed application. It manage ACID (Atomic, Consistent, Isolated, Durable) transaction

It integrated design patterns such as Proxy, Interface Driven Development and layered services, that are :

  • Interface
  • Business process façade
  • Business rules
  • Data access

    More details here Microsoft on SOA (MSDN) .

    -f.

  •