Disabling Triggers To Support Data Generation With DB Dude

31 במאי 2007

When deploying test data to database (such as insert statements script that executed at the Post Deployment Script into your sandbox database) that has triggers, you need that the triggers will be disabled before generating test data and then re-enabled after the data has been appropriately generated. I wrote two scripts for this issue: DisableTriggers.sql , EnableTriggers.sql . Execute this T-Sql before deploying test data: IF EXISTS ( SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'#AllTriggers') AND type in (N 'U')) DROP TABLE #AllTriggers --Getting all trigger names ad on what tables and schemas they reside:...
תגיות:
אין תגובות

C# attributes

26 במאי 2007

I asked too much by .NET developers about attributes and their meaning. I hope that this post will help you to understand it better. Introduction: what are attributes? An attribute is a powerful .NET language feature that is attached to a target programming element (e.g., a class, method, assembly, interface, etc.) to customize behaviors or extract organizational information of the target at design, compile, or runtime. It is a clean approach to associate metadata with program elements and later use the metadata at design, compile or run time to accomplish some common objectives. Attributes come in two flavors: intrinsic and custom. Intrinsic...
תגיות: ,
3 תגובות

WCF – Part 3: Binding Comparison

25 במאי 2007

Windows Communication Foundation (WCF) has various built-in bindings. System-provided bindings are used to specify the transport protocols, encoding, and security details required for clients and services to communicate with each other. Although some of these values can be configured differently on certain bindings, the table shows the defaults for each type.   This post will briefly describe and summarize the key differences between WCF's built-in bindings.   Note: WCF also allows you to define your own custom bindings.   Class name Description Transport Message encoding Security BasicHttpBinding A binding that is suitable for communication with WS-Basic Profile conformant Web Services like ASMX-based services. This binding uses HTTP as the transport and Text/XML as...
תגיות: ,
תגובה אחת

Enterprise Library 3.1 Released

24 במאי 2007

Enterprise Library 3.1 just Released: It is a maintenance release to fix a few bugs. It also includes an extension point in the Policy Injection Application Block that allows you to replace the injection mechanism. Changes per Tom Hollander: Policy Injection Application Block The default Remoting Policy Injector can now be replaced with alternative interception mechanisms via configuration without modifying the application block code Call Handler attributes are now honored correctly when placed on interface methods Fixed an issue that could cause duplicate handlers where matching rules matched both a class and its interface Classes implementing COM interfaces (including those deriving from System.Windows.Forms.Form) can now...
אין תגובות

We are the champions!

Inzaghi inspires Milan to glory!! Milan win the Champions League final thanks to a 2-1 victory over Liverpool, with both goals coming from Filippo Inzaghi. The first came on 45 minutes and the second came on 82 minutes. Kuyt scored for Liverpool on 88 minutes.
תגיות:
אין תגובות

WCF – Part 2: Basic Client/Server app

18 במאי 2007

This post is an example of how to build your first basicly wcf solution. First step: Contract Our contract is a simple interface class (ICalculator) containing one function: (Add).In order to declare the interface as a contract, you should add a attribute to the class. All methods you want to expose in your service, you should mark as . 123456 public interface ICalculator{    int Add(int a,int b);} Second step: The server The server should implement the contract simply by implementing the ICalculator interface as the following code: 123456789 public class Calculator : ICalculator{  #region ICalculator Members   public int Add(int a,int b)...
תגיות: ,
אין תגובות

WCF – Part 1: Introduction & Service ABC

WCF brings all the formerly distinct and separate Microsoft connectivity technologies together under a single umbrella within the System.ServiceModel namespace. Web services (ASMX), the Web service Extensions (WS*), Microsoft Message Queuing (MSMQ), Enterprise Services, COM+, and .NET Remoting are included in WCF.  With WCF you won't have to choose between implementations in a variety of different namespaces and coding types to create a connected application. Whether your application connects via loosely coupled Web services, or tightly coupled Enterprise Services, the coding model will be consistent and the transition between different communication types will be much smoother—because they will all be...
תגיות: ,
אין תגובות

WCF Articles

In order to introduce Windows Communication Foundation (WCF) I'm starting a series of posts here. Most of the applications now requires to support the SOA architecture, means that the application should provide a service interfaces to be exposed to other applications. These interfaces can be exposed using many technologies: Web Services, COM+ and so on. Each technology is completely defferent from the other, and requires special knowledge of coding. WCF makes life better. WCF helps developers to expose service interfaces using any technology. WCF has same set of functions and attributes that will be used for all technologies (bindings). From every post...
תגיות: ,
אין תגובות

WCAT 6.3 web performance and scalability test tool released!

The latest version of WCAT (Web Capacity Analysis Tool - the web performance test tool that the IIS team and NT Performance team use to conduct internal performance and scalability testing of IIS and ASP.NET) just released . For more details and download, read: http://mvolo.com/blogs/serverside/archive/2007/05/17/WCAT-6.3-web-performance-and-scalability-test-tool-released.aspx.
תגיות: , ,
תגובה אחת