Update-Database -Script -SourceMigration: MigrationAdı
Script-Migration -From -To -Context ContextAdı
public abstract class PagedResultBase | |
{ | |
public int CurrentPage { get; set; } | |
public int PageCount { get; set; } | |
public int PageSize { get; set; } | |
public int RowCount { get; set; } | |
public int FirstRowOnPage | |
{ | |
static class ADHelper | |
{ | |
public static bool ValidateUser(string domainName, string username, string password) | |
{ | |
Domain domain = GetDomain(domainName); | |
try | |
{ | |
//Log.Information("AD: Validating {UserName} in domain {DomainName}", username, domain.Name); | |
using (PrincipalContext pc = new PrincipalContext(ContextType.Domain, domain.Name)) |
// Source: https://codereview.stackexchange.com/questions/79/implementing-a-singleton-pattern-in-c | |
public sealed class Singleton | |
{ | |
// Thread safe Singleton with fully lazy instantiation á la Jon Skeet: | |
// http://csharpindepth.com/Articles/General/Singleton.aspx | |
Singleton() | |
{ | |
} | |
public static Singleton Instance |
--Değişken tanımı | |
DECLARE @PeopleId uniqueidentifier | |
--Döngü yapılacak tablo | |
DECLARE DONGU CURSOR FOR | |
SELECT Id FROM People | |
OPEN DONGU | |
FETCH NEXT FROM DONGU INTO @PeopleId |
Select KOLONADI, Count(KOLONADI) From TABLOADI Group By KOLONADI Having Count (KOLONADI) > 1 |
SELECT DB_NAME(database_id) AS DatabaseName, | |
Name AS Logical_Name, | |
Physical_Name, | |
(size * 8) / 1024 SizeMB | |
FROM sys.master_files | |
WHERE DB_NAME(database_id) = 'DbAdı' |
/*------------------------------------------ | |
Responsive Grid Media Queries - 1280, 1024, 768, 480 | |
1280-1024 - desktop (default grid) | |
1024-768 - tablet landscape | |
768-480 - tablet | |
480-less - phone landscape & smaller | |
--------------------------------------------*/ | |
@media all and (min-width: 1024px) and (max-width: 1280px) { } | |
@media all and (min-width: 768px) and (max-width: 1024px) { } |