Hello everybody,
few notes about some details of AngularJS.
1. What is $scope?
$scope is something where we can store information which is needed for page. Also data for changes of which we need to track.
2. How can we react on some changes in $scope? In other words if something at page modified...
Hello everybody,
today another glimpse from the AngularJS world which I can name of how to get something from server.
So, imagine that you see following code in your controller:
var OrderController = function($scope, $http) {
$scope.order = $http.get("/orders/1563");
}
and no...
Just short notice of AngularJS mouse directives:
ngClick,
ngDblClick,
ngMousedown,
ngMouseEnter,
ngMouseLeave,
ngMousemove,
ngMouseover,
ngMouseup
Ready to take your Acumatica experience to the next level? Just like AngularJS mouse directives—ngClick, ngDblClick, and more—empower seamless us...
Hello everybody,
here is short notice of how to define properties in javascript:
So, lets say you want to have class Dog, with "private" field alias and public property Alias. you can achieve it in the following way:
function Dog(nameOfDog) {
var alias = nameOfDog;
&nb...
Hello everybdoy,
today I want to write some notes about hierarchy research in ms sql database.
Imagine you have following structure in your table
TableWithParentChild:
id | rootID |  ...
Hello everybody,
some sql notes:
dbcc freeproccache; this one will clean plan of cached of sql.
Another note of how to find Sql code and plan by id from dm_exec_cached_plans
create function SqlAndPlan(@handle varbinary(max))
returns table
as
return select sql.text, cp.usecounts,cp.cac...
Hello everybody,
today I want to write few words about Moq and unit testing.
First of all you can have a question, why do I need Moq at all?
Moq is especially useful for cases if we don't have desire to code interface, then code implementation of interface, and then code fake implementation...
Hello everybody.
Today I want to give some demo.
using System;
using System.Diagnostics;
namespace StackOverflowQuest
{
class Program
{
struct StructTest
{
public string TestString { get; set; }
//public override bool Equals(object obj)...
Hello everybody,
today I want to share one trick which can save you few lines of code.
Imagine case: you created graph, and want to read something from db, and then set current property of that graph view to some value. How to do it in one line? The anser is simple, with help of Search<>
Fo...
Hello everybody,
today I want to write about reflecting hierarchy of classes in db with help of code-first.
There are three types:
Table per Hierarchy
Table per Type
Table per conreate class.
Below goes more detailed description
Table per Hierarchy (TPH): one table for the en...