This following code create a file and give right only to the "localAdmin" user in my case “localAdmin” is administrator. Next time if you login from guest account and try to access the same file so you will get error message of access deined because user not have the rights. using System; using System.IO; using System.Data; using System.ComponentModel; using System.Security.AccessControl; using System.Security.Principal; namespace Permission { public partial class CreatePermissoinFile { ///<summary> ......
In my pervious blog we saw the sqlmetal.exe utility that is use to generate data model class for my LINQ data class. There is another way to generate data model by using a very cool Designing tool called DLinq Designer. By the help DLinq Designer we can easily generate data model class for LINQ, DLINQ by simply drag and drop tables from Server Explorer. Testing Windows Application · Choose File->New Project within Visual Studio and navigate to the "LINQ Preview" node in the project-type tree-explorer. ......
Microsoft gives the answer of the above question in the form of new web site that totally focuses on software architects and architecture. According to Microsoft its place where you find the answers of your all questions. This site basically focuses on software architecture design and gives direction to become new architects. Skyscrapr start with the architecture basis and broaden into three major areas solutions, Infrastructure and Enterprise. · Architecture Basics · Solutions Architecture · Infrastructure ......
In my last blog we saw Microsoft LINQ and its LINQ to Object part and we also saw some small code snippet of LINQ to Object. One thing that I feel if you want to superior command on LINQ so you must have a good understanding of Anonymous types, Extension methods, Lambda expressions and Expression trees all are new feature of C# 3.0. Today I write small code snippet that use LINQ to SQL (formerly Dlinq). Before LINQ I use pure ADO.Net classes to write code that brings my required data. // Specify ......
I am continue from my last blog about new Microsoft platform Yes I am talking about Sliverlight. What's clear is that Silverlight is not simply a media play. Instead, Microsoft is aiming to take its managed code environment to the broader Internet. With Silverlight as a target, .NET developers can use the same skills (and much of the same code) that they employ to build Windows applications to build rich Internet applications. Also announced was the Microsoft Silverlight Streaming service, a free ......