DCSIMG
DEV,Configuration - Gil Fink's Blog

Gil Fink's Blog

Fink about IT

News

Microsoft MVP

My Facebook Profile My Twitter Profile My Linkedin Profile

Locations of visitors to this page

Creative Commons License

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.
© Copyright 2013 Gil Fink

Hebrew Articles

Index Pages

My OSS Projects

English Articles

Browse by Tags

All Tags » DEV » Configuration (RSS)
How to Configure a Self Referencing Entity in Code First
How to Configure a Self Referencing Entity in Code First A few days ago a worker in Sela asked me how to configure a self referencing entity with EF Code First. In this post I’ll show you how to implement that configuration. Self Reference Scenarios There are a lot of scenarios that we will want to implement a self reference between an entity to itself. For example, we do that when we want to create hierarchies in our application - an employee entity that has a self reference to his/her manager is...
Using Code First Model Configurations Classes
Using Code First Model Configurations Classes In the past I explained how to use the Code First Fluent API in order to configure and shape your EDM during runtime. One of the problems that might raise when you use the Fluent API as I showed in the previous post is that the OnModelCreating method might become bloated and hard to read. This is the time to get familiar with another model configuration option which is built inside Code First. Model Configurations Classes When you use Code First you will...
Revisiting XML Configurations In Unity
Revisiting XML Configurations In Unity In the past I wrote a few tutorials about Unity application block . One of the things I wrote about was how to configure a Unity container using design time configuration. In this post I’m going to revisit that post and show you how the configurations changed (for the better) and are much more easier to work with in the current version of Unity (version 2). The Unity Configuration Section As in my previous post we will first start with a small example of Unity...
Update Configurations Without Replacing Them Using Enterprise Library 5 Fluent Configuration API
Update Configurations Without Replacing Them Using Enterprise Library 5 Fluent Configuration API I got a question today in an article I published about the fluent configuration API in Enterprise Library 5 . The question was how to add a database connection string to an existing configuration during runtime. The person who wrote the question also published a specific solution which I refactored to a general purpose solution that I’ll show in this post. The Problem When you use the fluent configuration...
Back to Basic – ASP.NET Runtime Impersonation
Back to Basic – ASP.NET Runtime Impersonation Today I got a question from one of the developers at my main customer. The question was how to move an uploaded file from an ASP.NET server to a file server on the network. The answer is of course by impersonating. In this post I’ll explain how you can make ASP.NET impersonation and in more details how to make runtime impersonation. Impersonation in ASP.NET When we are doing I/O operations, the operation system makes security checks to understand if the...
Building a Simple Logging Http Module with Logging Application Block
Building a Simple Logging Http Module with Logging Application Block I wanted to check how to use the fluent configuration API for the Logging Application Block in Enterprise Library 5 . So I thought to myself why not implement it with an http module and provide two examples in one post. Using the Fluent Configuration API with Logging Application Block I wrote a post about the fluent configuration in Enterprise Library 5 in the past. Here is how I configured the Enterprise Library container in order...
Enterprise Library 5 Fluent Configuration API
Enterprise Library 5 Fluent Configuration API One of the new Enterprise Library 5 improvements is a new fluent configuration API . In this post I’ll explain the subject and then show how to use the fluent configuration API with the Data Access Application Block . Fluent Configuration API There are times that we would like to configure our application at runtime without using a configuration file such as web.config or app.config. In order to achieve that we can use the new fluent configuration API...
Using External Configuration File for Enterprise Library Configuration
Using External Configuration File for Enterprise Library Configuration One of the things that I always do when I’m using Enterprise Library is to separate its configurations to external configuration file . The reason is very obvious – using Enterprise Library makes configuration files very crowded. Since this is the case, the configuration files become unmanageable and then its time to separate the Enterprise Library ’s configurations from other configurations. How to Use external Configuration...
Back to Basics – How to Invoke Web Methods from a Remote Machine
Back to Basics – How to Invoke Web Methods from a Remote Machine I’ve been asked today how to enable invocation of WebMethods of an asmx web service from a remote machine for testing. The post holds the answer. How to Invoke Web Methods from a Remote Machine? Sometimes we want to test our asmx web service not from localhost but from a remote machine . Trying to open the test form of the web service from a remote machine will show the following message: “ The test form is only available for requests...
How to Create a Simple Enterprise Library Cache Manager Provider for Velocity
How to Create a Simple Enterprise Library Cache Manager Provider for Velocity In the previous post I promised to give the recipe of how to create the a simple Velocity cache manager provider using the Application Block Software Factory . In this post I’ll keep my promise. Creating the Project The first thing to do is to create the project. If you don’t have Application Block Software Factory installed on your computer then you can read an old post that I wrote in order to install it. In VS2008, choose...
Quick Tip – How to Enable Local Cache in Velocity (Microsoft Distributed Cache) Client
Quick Tip – How to Enable Local Cache in Velocity (Microsoft Distributed Cache) Client Since I got this question twice this week, I’m writing this post. One of Velocity (Microsoft Distributed Cache) features is called local cache . In this post I’ll show how to enable that feature. Velocity Client Local Cache Local cache is a Velocity feature that can help speed up access on Velocity clients. When enabled, a de-serialized copy of the object is saved in the client memory. Before retrieving cached...
Enabling Xml Schema Validation in Visual Studio
Enabling Xml Schema Validation in Visual Studio The post is a simple tip which will help you to enable Xml schema validation and intellisense while writing an Xml file inside Visual Studio . The Problem Writing Xml files according to a specific Xml schema definition is sometime very hard and can be a very “painful” task for a developer. You need to remember all the small details and elements in order to do it properly. So how can we validate the Xml files while writing them? The Solution Having the...
Working With Generic Types In Unity Configuration Section
The post shows how to register generic types in the Unity configuration section and how to use them in code....
Working With Configuration Files In Unity
The post describe how to work with configuration files with the Unity application block...