Tuesday, October 14, 2025

Power shell - extract IP

 # Define file paths

$jsonPath = "D:\Azure_IP\ServiceTags_Public_20251006.json"

$idCsvPath = "D:\Azure_IP\ids.csv"

$outputFolder = "D:\Azure_IP\Subnets"

# Create output folder if missing

if (!(Test-Path -Path $outputFolder)) {

    New-Item -ItemType Directory -Path $outputFolder | Out-Null

}


# Load and parse JSON

try {

    $jsonRaw = Get-Content -Raw -Path $jsonPath -ErrorAction Stop

    $json = $jsonRaw | ConvertFrom-Json -ErrorAction Stop

} catch {

    Write-Error "Failed to read/parse JSON at '$jsonPath'. $_"

    exit 1

}


# Ensure values array exists

if (-not $json.PSObject.Properties.Name -contains 'values' -or -not $json.values) {

    Write-Error "JSON does not contain a 'values' array."

    exit 1

}

$values = $json.values


# Read IDs from CSV or plain text file (supports:

#  - CSV with header 'Id'

#  - CSV with another header (first column used)

#  - Plain text file with one ID per line)

$ids = @()

try {

    $csv = Import-Csv -Path $idCsvPath -ErrorAction Stop

    if ($csv.Count -gt 0) {

        $firstProps = $csv[0].PSObject.Properties | ForEach-Object { $_.Name }

        if ($firstProps -contains 'Id') {

            $ids = $csv | ForEach-Object { $_.Id }

        } else {

            # take the first property/column if Id header is not present

            $firstProp = $firstProps[0]

            $ids = $csv | ForEach-Object { $_.$firstProp }

        }

    } else {

        # empty CSV, fall back to Get-Content

        $ids = Get-Content -Path $idCsvPath | Where-Object { $_ -and $_.Trim() -ne "" }

    }

} catch {

    # Import-Csv failed -> try reading as plain text lines

    Write-Verbose "Import-Csv failed, trying Get-Content: $_"

    $ids = Get-Content -Path $idCsvPath -ErrorAction Stop | Where-Object { $_ -and $_.Trim() -ne "" }

}


if ($ids.Count -eq 0) {

    Write-Warning "No IDs found in '$idCsvPath'. Nothing to process."

    exit 0

}


# Process each ID

foreach ($rawId in $ids) {

    $id = [string]$rawId

    $id = $id.Trim()

    if ([string]::IsNullOrWhiteSpace($id)) { continue }


    # Find matching value object by id (case-insensitive)

    $match = $values | Where-Object {

        $objId = ""

        if ($_.PSObject.Properties.Name -contains 'id') { $objId = $_.id }

        elseif ($_.PSObject.Properties.Name -contains 'Id') { $objId = $_.Id }

        else { $objId = $_ | Select-Object -ExpandProperty id -ErrorAction SilentlyContinue }

        return ($objId -as [string]) -ne $null -and ($objId -ieq $id)

    }


    if (-not $match) {

        Write-Warning "No matching entry found in JSON for Id: '$id'"

        continue

    }


    # Extract addressPrefixes - safe navigation

    $prefixes = $null

    try {

        $prefixes = $match.properties.addressPrefixes

    } catch {

        $prefixes = $null

    }


    # Prepare safe filename (replace invalid filename chars)

    $safeName = $id -replace '[\\/:*?"<>|]', '_'

    $outFile = Join-Path $outputFolder ("{0}.csv" -f $safeName)


    if ($null -eq $prefixes) {

        # Write empty CSV with header only

        @([PSCustomObject]@{ addressPrefix = "" }) |

            Select-Object -First 0 | # no rows

            Export-Csv -Path $outFile -NoTypeInformation -Encoding UTF8 -Force

        Write-Host "No addressPrefixes for '$id' — created empty CSV with header: $outFile"

        continue

    }


    # Ensure prefixes is an array/list (if single string, convert to array)

    if ($prefixes -is [string]) {

        $prefixes = ,$prefixes

    }


    # Convert to objects and export

    $rows = $prefixes | ForEach-Object {

        [PSCustomObject]@{

            addressPrefix = $_

        }

    }


    $rows | Export-Csv -Path $outFile -NoTypeInformation -Encoding UTF8 -Force


    Write-Host "Exported $($rows.Count) prefixes for '$id' → $outFile"

}


Write-Host "Done."

Install-Module Microsoft.PowerApps.Administration.PowerShell

 Install-Module Microsoft.PowerApps.Administration.PowerShell

Add-PowerAppsAccount

Get-AdminPowerAppEnvironment -EnvironmentName "<your environment name>" | Select-Object EnvironmentName,LinkedFabricCapacity

If LinkedFabricCapacity is blank or $null, Dataverse still can’t see any valid Fabric capacity — likely due to trial/shared issue.

Wednesday, May 7, 2025

Act Arrange 2

 using FakeXrmEasy;

using FakeItEasy;

using Microsoft.Xrm.Sdk;

using Xunit;


public class CaspPluginTests

{

    [Fact]

    public void Should_Call_CaspService_And_Set_Attribute()

    {

        // Arrange

        var context = new XrmFakedContext();

        var fakeService = A.Fake<ICaspService>();


        // Fake the method return value

        A.CallTo(() => fakeService.GetCaspMedicalData("123", "DLN456"))

            .Returns("{\"status\":\"success\"}");


        // Register your plugin and pass in the fake dependency

        var pluginContext = context.GetDefaultPluginContext();


        // Example: simulate a target entity

        var target = new Entity("contact") { Id = Guid.NewGuid() };

        target["pfx_contactid"] = "123";

        target["pfx_dln"] = "DLN456";


        pluginContext.InputParameters["Target"] = target;


        // Inject the fake dependency using constructor injection or a service locator

        var plugin = new CaspPlugin(fakeService); // You must design your plugin to accept it


        // Act

        context.ExecutePluginWith(plugin, pluginContext);


        // Assert — e.g. verify attribute set based on the fake result

        var updated = context.Data[target.LogicalName][target.Id];

        Assert.True(updated.Contains("pfx_result"));

        Assert.Equal("{\"status\":\"success\"}", updated["pfx_result"]);

    }

}


Act Arrnage

using Xunit;

using FakeItEasy;

using System.Net;

using System.Net.Http;

using System.Text;

using System.Threading;

using System.Threading.Tasks;

using Microsoft.Xrm.Sdk;


public class CaspServiceTests

{

    private readonly IDataAccessEnvironmentVariables _envVarMock;

    private readonly ISystemConfigurationService _configServiceMock;

    private readonly ITraceLogger _loggerMock;

    private readonly IHttpClientFactoryWrapper _httpFactoryMock;


    private readonly CaspService _service;


    public CaspServiceTests()

    {

        _envVarMock = A.Fake<IDataAccessEnvironmentVariables>();

        _configServiceMock = A.Fake<ISystemConfigurationService>();

        _loggerMock = A.Fake<ITraceLogger>();

        _httpFactoryMock = A.Fake<IHttpClientFactoryWrapper>();


        _service = new CaspService(

            _envVarMock,

            _configServiceMock,

            _loggerMock,

            _httpFactoryMock

        );

    }


    private HttpClient CreateFakeHttpClient(HttpResponseMessage responseMessage)

    {

        var fakeHandler = A.Fake<HttpMessageHandler>();


        A.CallTo(() => fakeHandler.Send(

            A<HttpRequestMessage>._,

            A<CancellationToken>._))

            .Returns(responseMessage);


        return new HttpClient(fakeHandler);

    }


    [Fact]

    public void GetCaspMedicalData_ShouldThrow_WhenUrlIsMissing()

    {

        // Arrange

        A.CallTo(() => _envVarMock

            .GetEnvironmentVariableValueByDefinitionSchemaName(A<string>._))

            .Returns(null);


        // Act & Assert

        Assert.Throws<InvalidPluginExecutionException>(() =>

            _service.GetCaspMedicalData("123", "DLN456"));

    }


    [Fact]

    public void GetCaspMedicalData_ShouldReturnResponse_WhenSuccessful()

    {

        // Arrange

        var expectedJson = "{\"status\":\"success\"}";

        var fakeHttpResponse = new HttpResponseMessage(HttpStatusCode.OK)

        {

            Content = new StringContent(expectedJson, Encoding.UTF8, "application/json")

        };


        A.CallTo(() => _envVarMock

            .GetEnvironmentVariableValueByDefinitionSchemaName(A<string>._))

            .Returns(new Entity { ["value"] = "https://fake.url.com" });


        A.CallTo(() => _configServiceMock.RetrievePFXSystemConfigRecord())

            .Returns(new Entity("pfx_config"));


        A.CallTo(() => _httpFactoryMock.CreateClient(A<Entity>._))

            .Returns(CreateFakeHttpClient(fakeHttpResponse));


        // Act

        var result = _service.GetCaspMedicalData("123", "DLN456");


        // Assert

        Assert.Equal(expectedJson, result);

    }


    [Fact]

    public void GetCaspMedicalData_ShouldThrow_WhenHttpReturnsNotFound()

    {

        // Arrange

        var response = new HttpResponseMessage(HttpStatusCode.NotFound);


        A.CallTo(() => _envVarMock

            .GetEnvironmentVariableValueByDefinitionSchemaName(A<string>._))

            .Returns(new Entity { ["value"] = "https://fake.url.com" });


        A.CallTo(() => _configServiceMock.RetrievePFXSystemConfigRecord())

            .Returns(new Entity("pfx_config"));


        A.CallTo(() => _httpFactoryMock.CreateClient(A<Entity>._))

            .Returns(CreateFakeHttpClient(response));


        // Act & Assert

        Assert.Throws<HttpRequestException>(() =>

            _service.GetCaspMedicalData("123", "DLN456"));

    }


    [Fact]

    public void GetCaspMedicalData_ShouldReturnEmpty_WhenInternalServerError()

    {

        // Arrange

        var response = new HttpResponseMessage(HttpStatusCode.InternalServerError);


        A.CallTo(() => _envVarMock

            .GetEnvironmentVariableValueByDefinitionSchemaName(A<string>._))

            .Returns(new Entity { ["value"] = "https://fake.url.com" });


        A.CallTo(() => _configServiceMock.RetrievePFXSystemConfigRecord())

            .Returns(new Entity("pfx_config"));


        A.CallTo(() => _httpFactoryMock.CreateClient(A<Entity>._))

            .Returns(CreateFakeHttpClient(response));


        // Act

        var result = _service.GetCaspMedicalData("123", "DLN456");


        // Assert

        Assert.Equal(string.Empty, result);

    }


    [Fact]

    public void GetCaspMedicalData_ShouldLogAndThrow_WhenUnhandledExceptionOccurs()

    {

        // Arrange

        A.CallTo(() => _envVarMock

            .GetEnvironmentVariableValueByDefinitionSchemaName(A<string>._))

            .Returns(new Entity { ["value"] = "https://fake.url.com" });


        A.CallTo(() => _configServiceMock.RetrievePFXSystemConfigRecord())

            .Returns(new Entity("pfx_config"));


        A.CallTo(() => _httpFactoryMock.CreateClient(A<Entity>._))

            .Throws(new Exception("Unexpected failure"));


        // Act & Assert

        Assert.Throws<Exception>(() =>

            _service.GetCaspMedicalData("123", "DLN456"));


        A.CallTo(() => _loggerMock

            .Error(A<string>._, A<string>._, A<Exception>._))

            .MustHaveHappenedOnceExactly();

    }

}


Sunday, March 23, 2025

Activity Party

 using Microsoft.Xrm.Sdk;

using Microsoft.Xrm.Sdk.Query;

using System;

using System.Collections.Generic;


public class RetrieveActivityParty

{

    private readonly IOrganizationService _service;


    public RetrieveActivityParty(IOrganizationService service)

    {

        _service = service;

    }


    public void GetActivityParties(Guid activityId)

    {

        QueryExpression query = new QueryExpression("activityparty")

        {

            ColumnSet = new ColumnSet("partyid", "participationtypemask")

        };


        query.Criteria.AddCondition("activityid", ConditionOperator.Equal, activityId);


        EntityCollection results = _service.RetrieveMultiple(query);


        foreach (Entity activityParty in results.Entities)

        {

            EntityReference party = activityParty.GetAttributeValue<EntityReference>("partyid");

            int participationType = activityParty.GetAttributeValue<OptionSetValue>("participationtypemask")?.Value ?? 0;


            Console.WriteLine($"Party ID: {party?.Id}, Type: {party?.LogicalName}, Participation Type: {participationType}");

        }

    }

}

---------
string fetchXml = $@"
    <fetch>
        <entity name='activityparty'>
            <attribute name='partyid' />
            <attribute name='participationtypemask' />
            <filter>
                <condition attribute='activityid' operator='eq' value='{activityId}' />
            </filter>
        </entity>
    </fetch>";

EntityCollection results = _service.RetrieveMultiple(new FetchExpression(fetchXml));

-------

Monday, March 10, 2025

Slpit-string

using System;

using System.Text.RegularExpressions;


class Program

{

    static void Main()

    {

        string url = "https://example.com/a-guid/b-guid/c-guid/d.anyextension";

        

        if (TryExtractFields(url, out string fieldA, out string fieldBC))

        {

            Console.WriteLine($"a: {fieldA}");

            Console.WriteLine($"b/c: {fieldBC}");

        }

        else

        {

            Console.WriteLine("Invalid URL format.");

        }

    }


    static bool TryExtractFields(string url, out string fieldA, out string fieldBC)

    {

        fieldA = string.Empty;

        fieldBC = string.Empty;


        // Regex to match: https://{domain}/{guid}/{guid}/{guid}/filename.anyextension

        Regex regex = new Regex(@"^https://[^/]+/([0-9a-fA-F-]{36})/([0-9a-fA-F-]{36})/([0-9a-fA-F-]{36})/[^/]+\.[a-zA-Z0-9]+$");

        Match match = regex.Match(url);


        if (match.Success)

        {

            fieldA = match.Groups[1].Value;   // Extract GUID 'a'

            fieldBC = $"{match.Groups[2].Value}/{match.Groups[3].Value}";  // Extract 'b/c' as "b-guid/c-guid"

            return true;

        }


        return false;

    }

}


Friday, July 22, 2022

Tools of Trade - 2

 VS code  Plugins  

Azure

Azure Account

Azure API Management Extension for Visual Studio Code

Azure App Service for Visual Studio Code 

Azure Application Insights

Azure CLI Tools

Azure Databases for VS Code

Azure Functions for Visual Studio Code

Azure Logic Apps for Visual Studio Code

Azure Pipelines for VS Code

Azure Resource Manager (ARM) Tools for Visual Studio Code 

Azure Storage for Visual Studio Code

Bicep VS Code extension

C# for Visual Studio Code (powered by OmniSharp)

C# Snippets for Visual Studio Code

Git Extension Pack

Node npm

Power Platform Extension

PowerShell Language Support for Visual Studio Code

REST Client

Start git-bash

XML Language Support by Red Hat


Software 

Firefox/Chrome

Level Up for Dyanmcis/D365 Power Pane 

FireFox  - Multi Account container

Postman

XrmToolBox

AzureData Explorer

NotePad += /Sublime Text

Git for Windows 

Fiddler Classic 

Visual Studio Code 

Ligthshot exe

Irfan View

NRemoteNG

Onenote

Drwa.io

Notion

VS2019/2022

Azure 

Azure Data Studio 

Azure Bus Explorer /https://github.com/paolosalvatori/ServiceBusExplorer

Azure Data Explorer

SSMS (SQL Server Management Tools) /Bids

Data Sync Studio

Kings way soft

Node.js

Power Shell 

Zoom

Microsoft Teams

Tools

Hangfire

Swagger /Swagger UI

Azure Batch 

Thursday, June 18, 2020

Tools Of Trade


  • Collaboration 
    • Microsoft Teams
    • Microsoft SharePoint
    • Slack
  • Note making
    • One note
  • Code Tools
    • Visual Studio
    • Notepad++
    • Sublime Text
    • Visual studio code
      • Addons
        • Azure Account
        • Azure App Service
        • Azure functions
        • Powershell
        • GittHistory
        • Python
        • Simple React snippets
        • Dynamics 365 – Developer Toolkit
  • Dependency Injection 
  • Data Mapping
  • Unit Testing
  • BDD
    • easypro
  • Js
  • Browser Tools
    • Dynamics 365 Power Pane
    • Level up for Dynamics 365/Power Apps
  • Data Mocking
  • CRM  Tools
    • XrmToolbox
    • Levelup-for-Dynamics-CRM
    • CRM REST Builder from Jason Lattimer
    • PowerShell - With the CRM Web API 
    • Scribe, KingswaySoft or CozyRoc
    •  Kaskela Solutions (Workflow Elements)
    • Dynamics 365 Workflow Tools" from Demian Raschkovan. 
    • Jason Lattimer's CRM Workflow Utilities.
    •  CRM REST Builder from Jason Lattimer
    •  Ribbon Workbench by Scott Durow 
    
    


Friday, May 20, 2016

MSCRM Addons /Codeplex


  1. https://mscrmworkflowutilities.codeplex.com/
  2. https://crmemailworkflowutilities.codeplex.com/
  3. https://crm2011internalemail.codeplex.com/
  4. https://crmemailworkflowutilities.codeplex.com/
  5. https://crmdatetimeworkflowutilities.codeplex.com/
  6. https://crmstringworkflowutilities.codeplex.com/
  7. https://crm2011distributewf.codeplex.com/
  8. https://crmemailworkflowutilities.codeplex.com/
  9. https://crmstringworkflowutilities.codeplex.com/
  10. https://crmnumericworkflowutilities.codeplex.com/
  11. https://crmemailworkflowutilities.codeplex.com/
  12. https://crm2013auditundo.codeplex.com/
  13. https://crm2013quicknavigation.codeplex.com/
  14. https://crmlinks.wordpress.com/category/tools/
  15. https://crmcodegenerator.codeplex.com/documentation
  16. http://www.gapconsulting.co.uk/our-solutions/free-tools/workflow-essentials
  17. http://manipulationlibrary.codeplex.com/
  18. https://processjsext.codeplex.com/
  19. https://alertjs.codeplex.com/
  20. https://notifyjs.codeplex.com/
  21. https://processjsext.codeplex.com/
  22. http://personalvieweditor.codeplex.com/
  23. http://xrmsvctoolkit.codeplex.com/
  24. https://xrmservicetoolkit.codeplex.com/
  25. https://crmazureattachments.codeplex.com/
  26. https://kaskelasolutions.com/
  27. https://msdyncrmworkflowtools.codeplex.com/
  28. https://crmemailworkflowutilities.codeplex.com/
  29. https://crmazureattachments.codeplex.com/
  30. https://msdyncrmworkflowtools.codeplex.com/
  31. http://crmdiagtool2011.codeplex.com/
  32. http://www.develop1.net/public/rwb/ribbonworkbench.aspx
  33. https://crmrestbuilder.codeplex.com/


Saturday, June 2, 2012

Accn Ques


Accn ques




Int Ques ACCn
**********************
Routed events in Silverlight
custome routed  events in WPF
Iobservable collection


What are dependency property ?
Syntax for dependency property.
Why dependency property is static .

How silverlight application interacts with webservices ?
How silverlight application interacts with Database ?

What are XAP files.
How to optimize XAP file..

Multiple bindings in WCF

Binding in WPF, one way two way bindings..

Inotify property changed
Logical and visual tree in WPF

Generics , what are generics ..have u used genericss.where have u used them.


New Bindings in WCF 4.0 (basicWebHttpContext bindings)
Have u used multiple bindings in WCF, if yes when.
Per session  and Per call in WCF

Factory pattern, mediator pattern, singleton , observer pattern,proxy claees

calling wcf asynchronously from Silverlight application


MVC vs MVVM
what is MVVM
how is interaction in MVVM ..within various components
why MVVM not mvc (basically because of binding structure ,navigaton and dependency prop)


Icoomand
Template /Data temmplate /control template
logical vs visual tree

visual studio 2010

coded UI
Intellitrace
Automated build in visual studio 2010
----

What are various ways of datacontext implemetation in WPF

DataContext="{Binding RelativeSource={RelativeSource Self}}"

this.Datacontext == and set it to observable collection .

<ListView x:Name="gameListView" ItemsSource=
       "{Binding ElementName=This, Path=GameCollection}">
---
What are DataTemplateSelectors -selecting Datatemplate at runtime .
Ivalue Convertors


----
User control in WPF
<UserControl x:Class ="/>

Links


http://blogs.msdn.com/b/ericlippert/archive/2012/01/23/anonymous-types-unify-within-an-assembly.aspx



http://blogs.msdn.com/b/ericlippert/archive/2010/12/20/why-are-anonymous-types-generic.aspx



http://blogs.msdn.com/b/abhinaba/archive/2005/10/05/477238.aspx

Sunday, April 1, 2012

Latest Ques

Yash



Static Vs Sealed
Abstract vs Sealed

Extending Sealed class /Extension Methods

Why Linq when we have ADo.net

Why Linq?

Edmx File
Entity Framework /Code first vs Database first in Entity/Poco Entities

Unit Testing your Asp.net MVC  (How you unit test your MVC application)

Why MVC why not Asp.net

$ in jquery-can you change that

$.readOnly

Different Selectors in Jquery /why Jquery

Why LInq why not Ado.net

how to define an extension methods

Nullable Types?

Value type and refrence type
Difference between  Stored procedure and UDEF (user defined functions)

Global and local tables (## ,#)


What is Asp.net MVC ?

How does routing works in Asp.net MVC

Action filters in Asp.net MVC [OnAction
Executing,OnActionExecuted,OnResultExecuting,OnResultExecute)



What is MVC

Delegate
Multicast delegate

Calling only one function in multicast delegate out of many *

Difference between WebApplication and WebSite ?
Difference between Trace and Debug

what are Func
Func Vs Delegate ?
Func Vs Action -(Same as Multi Cast delegate)
Func
Action dosen't have a return type

Why from where select in LInq Instad of Select  from where
Query Expressions -How does query Expressions work -Expression Trees work 

Lazy loading /Deffered execution 

Outer Join in LINq -Yes possible

Basic Vs WS http binding (WS-* -atomic/transactions/Soap 1.2/)--Message security


http://blogs.msdn.com/b/gduthie/archive/2011/03/17/get-to-know-action-filters-in-asp-net-mvc-3-using-handleerror.aspx

http://weblogs.asp.net/scottgu/archive/2010/08/03/using-ef-code-first-with-an-existing-database.aspx

Sunday, March 25, 2012

Latest Learnings


 LINQ
http://blogs.msdn.com/b/wesdyer/archive/2007/03/09/extending-the-world.aspx 
Introducing LINQ—Language Integrated Query
http://www.codeproject.com/Articles/199060/Introducing-LINQ-Language-Integrated-Query

LINQ to SQL: Basic Concepts and Features
http://www.codeproject.com/Articles/215712/LINQ-to-SQL-Basic-Concepts-and-Features

LINQ to SQL: Advanced Concepts and Features
http://www.codeproject.com/Articles/230380/LINQ-to-SQL-Advanced-Concepts-and-Features

http://weblogs.asp.net/owscott/archive/2007/09/02/application-vs-appdomain.aspx

http://blogs.msdn.com/b/adonet/archive/2009/05/28/poco-in-the-entity-framework-part-2-complex-types-deferred-loading-and-explicit-loading.aspx

http://www.codeproject.com/Articles/4074/Using-IEnumerator-and-IEnumerable-in-the-NET-Frame

http://www.codeproject.com/Articles/47948/The-Observer-Design-Pattern

http://www.functionx.com/csharp2/serialization/binary.htm

http://blogs.msdn.com/b/mattwar/archive/2007/07/30/linq-building-an-iqueryable-provider-part-i.aspx


WCF (Windows Communication Foundation)

WCF: Loose coupling of WCF Service and Data Contracts
http://www.codeproject.com/Articles/55690/WCF-Loose-coupling-of-WCF-Service-and-Data-Contrac

http://kjellsj.blogspot.in/2007/02/wcf-streaming-upload-files-over-http.html

http://www.codeproject.com/Articles/29475/Windows-Communication-Foundation-FAQ-quick-starter

http://www.codeproject.com/Articles/29480/Windows-Communication-Foundation-FAQ-quick-starter

http://www.codeproject.com/Articles/36289/8-steps-to-enable-windows-authentication-on-WCF-Ba

http://www.codeproject.com/Articles/36732/WCF-FAQ-Part-3-10-security-related-FAQ

http://www.codeproject.com/Articles/188749/WCF-Sessions-Brief-Introduction

http://dotnetinterviews.com/WCF-Interview-Questions-Answers.aspx

http://msdn.microsoft.com/en-us/library/75x4ha6s.aspx

http://www.codeproject.com/Articles/32545/Exploring-Session-in-ASP-Net

http://msdn.microsoft.com/en-us/library/ms731083(v=vs.90).aspx

http://msdn.microsoft.com/en-us/library/ms730255(v=vs.90).aspx
http://msdn.microsoft.com/en-us/library/ms789039(v=vs.90).aspx
http://msdn.microsoft.com/en-us/library/ms731083(v=vs.90).aspx
http://msdn.microsoft.com/en-us/library/ms730255(v=vs.90).aspx
http://msdn.microsoft.com/en-us/library/ms789039(v=vs.90).aspx
http://www.devproconnections.com/article/windows-communication-foundation-wcf2/versioning-wcf-services-part-i-122538

DataContract DataMember
DataMember Order (Alphabatically arrangement )
DataContract Name/NameSpace DataMember Name
Datacontract Equivalance
KnownTypeAttribute for DataContract
DataContract Inheritance/Known Types (An interface with different Implementation)
IExtensibleDataObject (Roundtipping/no data lost)

A messaging-style operation has at most one parameter and one return value where both types are message types
MessageContractAttribute
MessageHeaderAttribute
MessageBodyMemberAttribute
System.ServiceModel.MessageContractMemberAttribute.ProtectionLevel

DataMember/IsRequired


WPF (Windows Presentation Foundation)

http://msdn.microsoft.com/en-us/library/ms742868.aspx

http://msdn.microsoft.com/en-us/library/ms752312.aspx
http://msdn.microsoft.com/en-us/library/ms753962.aspx

http://www.codeproject.com/Articles/278901/MVVM-Pattern-Made-Simple

http://www.codeproject.com/Articles/42830/Model-View-Controller-Model-View-Presenter-and-Mod

http://csharperimage.jeremylikness.com/2010/04/model-view-viewmodel-mvvm-explained.html

http://www.codeproject.com/Articles/238657/How-to-use-Commands-in-WPF

http://www.codeproject.com/Articles/64936/Multi-Threaded-ObservableCollection-and-NotifyColl


Asp.net

http://www.codeproject.com/Articles/4773/Events-and-Delegates-simplified

http://www.codeproject.com/Articles/32545/Exploring-Session-in-ASP-Net

http://wiki.asp.net/404.aspx?aspxerrorpath=/themes/fan/pages/page.aspx/655/caching-in-aspnet/

http://www.codeproject.com/Articles/28721/Caching-Interview-Questions-Part-1

http://quickstarts.asp.net/QuickStartv20/aspnet/doc/localization/default.aspx

http://blog.maartenballiauw.be/post/2007/11/ASPNET-load-balancing-and-ASPNET-state-server-%28aspnet_state%29.aspx

http://www.dotnetspider.com/tutorials/AspNet-Tutorial-35.aspx

http://vishalnayan.wordpress.com/2011/03/17/hour-4-understanding-5-asp-net-state-management-techniques-in-5-hours/

http://www.hanselman.com/blog/ASPNETInterviewQuestions.aspx

http://venkataspinterview.blogspot.in/2011/09/aspnet-page-is-very-slow-what-will-you.html


Asp.Net MVC
http://tampadev.org/Tag/asp.net-mvc-videos

http://www.codethinked.com/aspnet-mvc-request-flow


MVC Best Practices

http://weblogs.asp.net/rashid/archive/2009/04/01/asp-net-mvc-best-practices-part-1.aspx

http://www.sdn.nl/SDN/Artikelen/tabid/58/view/View/ArticleID/3156/Introduction-to-Razor-Syntax.aspx



Design principle/Standards

http://blog.objectmentor.com/articles/category/design-principles

http://developer.yahoo.com/performance/rules.html

http://dimecasts.net/Casts/ByTag/NUnit

http://www.simple-talk.com/dotnet/.net-framework/designing-c-software-with-interfaces/

http://codeofdoom.com/wordpress/2009/02/12/learn-this-when-to-use-an-abstract-class-and-an-interface/

http://www.simple-talk.com/dotnet/.net-framework/writing-maintainable-code/

http://www.simple-talk.com/dotnet/

ADO  .Net 

http://msdn.microsoft.com/en-us/library/tzwewss0(v=vs.71).aspx

http://msdn.microsoft.com/en-us/library/etk0s9w0(v=vs.71).aspx

http://msdn.microsoft.com/en-us/library/d6s958d6(v=vs.71).aspx

http://msdn.microsoft.com/en-us/library/ms173156.aspx

SQL


http://www.codeproject.com/Articles/114262/6-ways-of-doing-locking-in-NET-Pessimistic-and-opt

http://www.codeproject.com/Articles/42553/Quick-Overview-Temporary-Tables-in-SQL-Server-2005

http://www.codeproject.com/Articles/39006/Overview-of-SQL-Server-2005-2008-Table-Indexing-Pa



Entity Framework

http://www.sdn.nl/SDN/Artikelen/tabid/58/view/View/ArticleID/3022/ADONET-Entity-Framework-Overview.aspx
http://www.codeproject.com/Articles/189636/Transaction-Isolation-in-ADO-Net-Entity-Framework

Monday, March 19, 2012

Interview Questions


Does View state an expire time
Dynamically attaching javascript to a button

??Iqueryable ??
??IEnumarable

Generics  ??
Generic Methods?

delegates  events
 Lambda expression

Anonymus types
Expression Trees

Conversion of LInq to Sql ?-

 Ge,events,delegates



WCF /Binding/serialization -?
 ---------------------------------------------------------
Lyndis


Question Asked


Events
Delegates

OOPS/Inheritance/Child Parent Calls

WCF Channels
WCF hosting

Static vS Singleton

WCF Caching
Bindins in WCF /ABC/

Aysnchronous Web services

Database Design


why events why not delegates
--------------------

http://www.codeproject.com/Articles/215712/LINQ-to-SQL-Basic-Concepts-and-Features

http://weblogs.asp.net/owscott/archive/2007/09/02/application-vs-appdomain.aspx
http://blogs.msdn.com/b/adonet/archive/2009/05/28/poco-in-the-entity-framework-part-2-complex-types-deferred-loading-and-explicit-loading.aspx


----

Jhonshon Controls


Out vs ref keyword ?

what methods a object suppport(equals,to string,gettype
,GetHashCode)

.What is uniquie identifier of an object

What is default from which .Net type inherit

Appdomain vs App pool

Typed data Set,

Acess modifiers (internal,protected)

WCF Channel/s

Poco enttities /Poco  Objects
ClS complaint,CTS common type system


localization vs globalizaion
Class A

{
  Static A()
  Public A()
}


Class B:A

{
  Static B()
  Public B()
}


Class C:B

{
  Static C()
  Public C()
}