#PARAN SILVERLIGHT#
  • Tistory
    • 관리자
    • 글쓰기
Carousel 01
Carousel 02
Previous Next

'FRAMEWORK'에 해당되는 글 22건

  • 2013.05.09 lightswitch Debug
  • 2013.05.09 lightswitch Excetpion : Connection is already part of a local or a distributed transaction
  • 2013.05.09 Publish / Deploy a package with Oracle DB without Authorization enabling
  • 2013.04.25 Entity Frame Work - Oracle : Direct path read problem(Full scan)
  • 2013.04.24 hibernating rhinos - Profiler Tool for Entity Framework
  • 2013.04.24 LinQPad
  • 2013.04.22 Auto Complete Box with DB data
  • 2013.04.17 Where Is the Query Executed?
  • 2013.04.16 Understanding Query Features
  • 2013.04.16 LightSwitch Data Access Objects

lightswitch Debug

FRAMEWORK/LightSwitch 2013. 5. 9. 14:06

http://lightswitchhelpwebsite.com/Blog/tabid/61/EntryId/45/Tracing-Debugging-Your-LightSwitch-Application-In-Production.aspx

 

http://blogs.msdn.com/b/lightswitch/archive/2011/09/20/diagnosing-problems-in-a-deployed-lightswitch-application-eric-erhardt.aspx

 

http://blogs.msdn.com/b/mattev/archive/2012/06/25/working-around-the-chrome-data-loading-bug-in-lightswitch-2012-rc.aspx

저작자표시 비영리 (새창열림)
블로그 이미지

파란실버라이트

To remember the time when I started learning Silver Light!

,

lightswitch Excetpion : Connection is already part of a local or a distributed transaction

FRAMEWORK/LightSwitch 2013. 5. 9. 14:04

After I published the packaged to IIS7,  the exception occurred below.

Connection is already part of a local or a distributed transaction

 

referring to the article  the problem is resolved.

https://forums.oracle.com/forums/thread.jspa?threadID=2263095

or  http://forums.devart.com/viewtopic.php?t=20844

 

 

1. Switch to the File View of your LightSwitch Solution.
2. Select the "Server" Project and add a reference to "System.Transactions".
3. Open the Code for your Data Source (Right-Click on your Data Source --> Show/View Code)
4. Declare a using for System.Transactions:
using System.Transactions;
5. Enter following code snippet:

 

 

 

      private TransactionScope _tscope;

 

        partial void SaveChanges_Executing()
        {
            _tscope = new TransactionScope(TransactionScopeOption.Required,
                new TransactionOptions
                {
                    IsolationLevel = System.Transactions.IsolationLevel.ReadCommitted
                });
        }

        partial void SaveChanges_Executed()
        {
            _tscope.Complete();
            _tscope.Dispose();
        }


저작자표시 비영리 (새창열림)
블로그 이미지

파란실버라이트

To remember the time when I started learning Silver Light!

,

Publish / Deploy a package with Oracle DB without Authorization enabling

FRAMEWORK/LightSwitch 2013. 5. 9. 11:58
Light Switch doesn't automatically make tables in Oracle for user authentication.

if user forms authentication is checked,  we need to input MS SQL connection when we deploy a package.

=>not possible to deploy with Oracle DB server

 

 

 

 

so check : Do not enable authentication, then we can deploy a package without MS SQL connection information.

 

 

Create a package on disk, select the directory the package should be created.

 

 

click publish ! We can see the package in the directory.

 

 

 

 

Now it is time to deploy the package in IIS7.

move the files including the package to a directory in Server computer.

 

1. ODAC for Oracle should be installed in server environment.

2. should install deploy 3.0 through web platform installer 4.5

deploy 3.0 download link :  http://www.iis.net/downloads/microsoft/web-deploy

3. Deploy the package with deploy : load the application

 

 

4. Now we can see the website working well.

 

 

저작자표시 비영리 (새창열림)
블로그 이미지

파란실버라이트

To remember the time when I started learning Silver Light!

,

Entity Frame Work - Oracle : Direct path read problem(Full scan)

FRAMEWORK/LightSwitch 2013. 4. 25. 10:49

When  I don't use bind variance , the response time is acceptable.

query.Where(e => e.CUST_LOT == "AAA");

 

 

But  with a bind variance , obviously it spends too much time, which occurred time out error.

 

string Lotid = "AAA" ;

query.Where(e => e.CUST_LOT == Lotid );

 

 

 

I look into the query with Query tool, the plan is OK.

But When I check the session, there is a direct path read problem(Full path read).

 

 

I found a solution in the article below. use EntityFunctions.AsNonUnicode!

string Lotid = "AAA" ;

query.Where(e => e.CUST_LOT == EntityFunctions.AsNonUnicode(Lotid));

 

https://forums.oracle.com/forums/thread.jspa?messageID=10723648

 

[ the cause of this problem]

Because .NET string is Unicode, by default NVARCHAR2 is used in parameter binding for a string variable.
In WHERE clause, when one side is N type and the other side is not N type, data conversion occurs.
That may cause full table scan instead of using index.

EntityFunctions.AsNonUnicode() tells ODP.NET to treat a string as non Unicode. In this case, VARCHAR2
is used for the parameter binding. Because both sides are not N type, no more data conversion and
no more full table scan.

 

 

저작자표시 비영리 (새창열림)
블로그 이미지

파란실버라이트

To remember the time when I started learning Silver Light!

,

hibernating rhinos - Profiler Tool for Entity Framework

FRAMEWORK/LightSwitch 2013. 4. 24. 21:05

Light Switch에서 실행한 쿼리문을 Profiling 해주는 툴 , 굉장하다.

Trace 탭이 안보이는데 라이센스를 구매해야 하나. ㅠ.ㅠ.

 

When you start the profiler, you will get the following screen:

EFProf Start Page

After I configured my test application and ran it, I got the following screen with all the information I needed:

EFProf After Running

You can see the queries that I run at the bottom, application statistic at the left menu and more important stuff which gives you very crucial details about your running application. You can also get an analysis of your code in the left menu such as:

EFProf Analysis

One feature that I really liked and made me feel like a DBA was the ability to see the query plan of the query in a visual way:

Query Plan

And of course, the ability to run your queries from the profiler:

Running Queries

 

 

출처

http://www.codeproject.com/Articles/101214/EFProf-Profiler-Tool-for-Entity-Framework

저작자표시 비영리 (새창열림)
블로그 이미지

파란실버라이트

To remember the time when I started learning Silver Light!

,

LinQPad

FRAMEWORK/LightSwitch 2013. 4. 24. 21:02

Odata 를 Linq를 작성해서 바로 데이타를 볼수 있는 툴  좋다. ^^

 

In this article we will cover the simplest scenarios for connecting to LightSwitch using OData. We will not cover, inserting, updating, deleting, or validation.

The Application

clip_image001

We start with a simple LightSwitch application that contains a few Entities (tables) and Screens.

clip_image002

We Publish the application.

clip_image003

We enter some sample data.

Connecting To LightSwitch Using OData

clip_image004

We change the URL that we use to get to the application …

clip_image005

… to a URL with ApplicationData.svc.

clip_image006

This will allow us to see the OData Feed.

Using LinqPad

clip_image007

We can download and install LinqPad from: http://www.linqpad.net/.

clip_image008

We add a connection.

clip_image009

We select OData.

clip_image010

We enter the URL and click OK.

clip_image011

The Entities will show.

We can use the following query (in C# Statement(s) mode):

 

var DozenRedRoses = 
from Product in Products
where Product.ProductName == "Dozen Red Roses"
select Product;
DozenRedRoses.Dump("The Dozen Red Roses");
// Set Product ID
var intProductID = DozenRedRoses.FirstOrDefault().Id;
var OrderDetailsForRoses = 
from OrderDetail in OrderDetails
where OrderDetail.Product.Id == intProductID
where OrderDetail.Quantity > 1
select OrderDetail;
OrderDetailsForRoses.Dump("The order details for more than 2 roses");
// Get Order Detail IDs
List<int> OrderDetailIDs = new List<int>();
foreach (var element in OrderDetailsForRoses)
{
	OrderDetailIDs.Add(element.OrderDetail_Order);
}
foreach (var element in OrderDetailIDs)
{
	var OrderForRoses = 
	from Order in Orders
	where Order.Id == element 
	select Order;
	
	OrderForRoses.Dump("A order for more than 2 Red Roses");
}

 

To produce this result:

clip_image012

Security

clip_image013

We can enable Forms Authentication and deploy the application again.

clip_image014

When we try to navigate to the OData methods it prompts us for a valid account.

 

참조 :

http://lightswitchhelpwebsite.com/Blog/tabid/61/EntryId/114/Accessing-Your-Visual-Studio-2011-LightSwitch-Application-Using-OData.aspx

저작자표시 비영리 (새창열림)
블로그 이미지

파란실버라이트

To remember the time when I started learning Silver Light!

,

Auto Complete Box with DB data

2013. 4. 22. 20:52

보호되어 있는 글입니다.
내용을 보시려면 비밀번호를 입력하세요.

Where Is the Query Executed?

FRAMEWORK/LightSwitch 2013. 4. 17. 10:25

 In most cases, it’s preferable for queries to be executed remotely. However, it sometimes isn't
possible to execute a query remotely, because the data service might not support a specific query
operation.

 

 

 

<Query Pipeline>

저작자표시 비영리 (새창열림)
블로그 이미지

파란실버라이트

To remember the time when I started learning Silver Light!

,

Understanding Query Features

FRAMEWORK/LightSwitch 2013. 4. 16. 11:58

 

 

저작자표시 비영리 (새창열림)
블로그 이미지

파란실버라이트

To remember the time when I started learning Silver Light!

,

LightSwitch Data Access Objects

FRAMEWORK/LightSwitch 2013. 4. 16. 09:53

 

저작자표시 비영리 (새창열림)
블로그 이미지

파란실버라이트

To remember the time when I started learning Silver Light!

,
  • «
  • 1
  • 2
  • 3
  • »

카테고리

  • Inforamtion Technology (281)
    • DESIGN PATTERN (33)
      • 실용주의 디자인패턴 (29)
    • SOFTWARE ENGINEERING (21)
      • Art Of Readable Code (12)
      • Object Oriented Programming (6)
      • TDD (2)
    • FRAMEWORK (22)
      • Spring.net (2)
      • LightSwitch (20)
    • PROGRAMING (58)
      • C# (20)
      • .NET (6)
      • HTML5 (7)
      • ASP.NET (9)
      • SILVERLIGHT (7)
      • Ruby On Rails (6)
    • PROJECT MANAGEMENT (10)
      • SW Version Management (7)
      • Schedulring Management (1)
    • BOOKS (18)
    • MOBILE APP (1)
      • SENCHA TOUCH (1)
    • SECURITY (5)
    • MES (1)
    • B2B (14)
      • WEBMETHODS (4)
    • ERP (53)
      • SAP/R/3 (51)
    • ABOUT TOOLS (2)
    • FUNDAMENT CONCEPT (21)
    • SOA BPM (22)
    • PORTFOLIO (0)

태그목록

  • 프로그래밍
  • 동시성
  • 병렬

최근에 받은 트랙백

글 보관함

링크

파란실버라이트

블로그 이미지

To remember the time when I started learning Silver Light!

LATEST FROM OUR BLOG

RSS 구독하기

LATEST COMMENTS

BLOG VISITORS

  • Total :
  • Today :
  • Yesterday :

Copyright © 2015 Socialdev. All Rights Reserved.

티스토리툴바