erotik film
bodyheat full moves
www xxx kajal video
la figa che sborra
ver video de sexo porno
Luxury replica watches
sex
asyabahis
escort antalya
Home
Blog
Downloads
Login
You are here:
Blog
** THIS SITE IS AN ARCHIVE ** - New Content is at:
All Blogs
Bilal Haidar
Bill Mason
DELORDSON
LightSwitch Help Website
Mihail Mateev LightSwitch Blog
Richard Waddell
Switching the Lights
The Power of LightSwitch
Thomas Capps
Keywords
Phrase
HTML Client (31)
Advanced (17)
Applications (17)
OData (17)
Control Extensions (16)
Custom Controls (13)
WCF RIA Service (13)
Cloud Business App (11)
Beginner (10)
AngularJs (9)
Extensions (9)
MVVM (9)
Angular 2 (8)
HTML Client (beta Version) (8)
Angular 4 (7)
Printing (7)
Intermediate (6)
VS2013 (6)
LightSwitch 11 (5)
Concepts (4)
DotNetNuke (4)
MVC (4)
Reporting (4)
ADefHelpDesk (3)
Azure Functions (3)
Book Excerpts (3)
PowerApps (3)
Student Information System (3)
Data Grid (2)
Radzen (2)
App Inventor (1)
Azure WebJob (1)
Community (1)
Debugging (1)
Design (1)
Dynamic SQL (1)
ExcelImporter (1)
Extensibility (1)
Installation (1)
Interviews (1)
JavaScript (1)
LightSwitch (1)
Microsoft Flow (1)
OLAP (1)
PayPal (1)
PhoneGap (1)
Stored Procedures (1)
Templates (1)
Utility (1)
Videos (1)
Wijmo (1)
WinJS (1)
Archive
<
November 2011
>
Sun
Mon
Tue
Wed
Thu
Fri
Sat
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
1
2
3
4
5
6
7
8
9
10
Monthly
June 2019 (3)
April 2019 (1)
December 2018 (2)
November 2017 (2)
August 2017 (1)
July 2017 (3)
June 2017 (2)
May 2017 (2)
April 2017 (1)
March 2017 (2)
February 2017 (2)
January 2017 (2)
December 2016 (3)
November 2016 (3)
March 2016 (1)
January 2016 (1)
December 2015 (1)
August 2015 (2)
July 2015 (2)
June 2015 (1)
May 2015 (2)
April 2015 (2)
February 2015 (1)
January 2015 (1)
December 2014 (3)
November 2014 (1)
October 2014 (2)
August 2014 (4)
June 2014 (3)
May 2014 (3)
April 2014 (3)
March 2014 (1)
February 2014 (1)
January 2014 (1)
December 2013 (3)
November 2013 (4)
October 2013 (7)
September 2013 (8)
August 2013 (2)
July 2013 (4)
June 2013 (4)
May 2013 (10)
April 2013 (7)
March 2013 (1)
February 2013 (6)
January 2013 (2)
December 2012 (6)
November 2012 (7)
September 2012 (1)
August 2012 (2)
July 2012 (9)
June 2012 (4)
May 2012 (3)
April 2012 (9)
March 2012 (7)
February 2012 (8)
January 2012 (8)
December 2011 (5)
November 2011 (4)
October 2011 (6)
September 2011 (5)
August 2011 (5)
July 2011 (5)
June 2011 (5)
May 2011 (11)
April 2011 (3)
March 2011 (1)
September 2010 (4)
August 2010 (2)
Auditing and Concurrency don’t mix (easily)…
By Kostas Christodoulou on
Sunday, November 20, 2011
In MSDN forums I came across a
post
addressing an issue I have also faced. Auditing fields can cause concurrency issues in LightSwitch (not exclusively).
In general basic auditing includes keeping track of when an entity was created/modified and by whom. I say basic auditing because auditing is in general much more than this.
Anyhow, this basic auditing mechanism is very widely implemented (it’s a way for developers to be able to easily find a user to blame for their own bugs :-p), so let’s see what this can cause and why in LightSwitch.
In the aforementioned post but also in this
one
, I have clearly stated that IMHO the best way to handle concurrency issues is using RIA Services. If you don’t, read what follows.
Normally in any application, updating the fields that implement Audit tracking would be a task completed in the business layer (or even Data layer in some cases and this could go as deep as a database trigger). So in LightSwitch the first place one would look into to put this logic would be EntityName_Inserting and EntityName_Updating partial methods that run on the server. Which is right, but causes concurrency issues, since after saving the client instance of the entity is not updated by the changes made at the server and as soon as you try to save again this will cause concurrency error.
So, what can you do, apart from refreshing after every save which is not very appealing? Update at the client. Not appealing either but at least it can be done elegantly:
Let’s say all entities to implement auditing have 4 fields:
DateCreated CreatedBy DateModified ModifiedBy Add to the Common project a new interface called IAuditable like below:
namespace LightSwitchApplication{...
PermaLink
Read More »
Comments (0)
Switching the Lights
LightSwitch Chat Application Using A Data Source Extension
By Michael Washington on
11/19/2011 7:15 PM
In this article we will create a simple chat application. If different users are using the same LightSwitch application, they will be able to chat with each other.
...
PermaLink
Read More »
LightSwitch Help Website
CLASS Extensions. Making of (the end)
By Kostas Christodoulou on
Tuesday, November 8, 2011
If you have installed
CLASS Extensions
you know that there are two different controls that are used to handle Color business type. The ColorPicker and the ColorViewer. If you have read the
previous post
of the series you know that behind the scenes, each one of these controls is a wrapper for 2 other controls. The ColorPicker is for editing whereas ColorViewer is used for viewing only. The reason of exposing 2 different controls was that I didn’t manage to correctly retrieve the information about the content being read-only and changing dynamically the behavior of the controls.
If you browse the code you will see in _Load and other places (be kind, I was desperate) the attempt to bind to IsReadOnly property of the DataContext.
What I wanted to achieve was to...
PermaLink
Read More »
Comments (22)
Switching the Lights
Connecting To A .CSV or Excel File Directly With LightSwitch
By Michael Washington on
11/3/2011 8:23 PM
Sometimes we are faced with the need to read data from a .csv (comma separated value) or Excel file. One option is to import the data, but this can turn out to be more trouble than any benefit if the file changes frequently.
Using
WCF RIA Services
allows the option to place the .csv or Excel file on the server hard drive and have LightSwitch access the data directly. When the file changes, simply...
PermaLink
Read More »
LightSwitch Help Website
Microsoft Visual Studio is a registered trademark of Microsoft Corporation / LightSwitch is a registered trademark of Microsoft Corporation
Copyright 2020 by Michael Washington
Terms Of Use
Privacy Statement