Bazı durumlarda uygulamalarda bazı verileri kaydederken eşsiz tanımlayıcılar (Unique Identifier) kullanmanız gerekebilir.
Programlama
Bu bölümde tarih ve zaman değerlerini karşılaştırma işlemlerini ele alacağız. Tarih ve zaman değerlerini karşılaştırmak için DateTime sınıfının CompareTo ve Equals metodları kullanılır.
Projenizde TCPIP üzerinde bir porttan data okumak gerekebilir. Bunu Telnet ile yapabilirsiniz.
DateTime sınıfını kullanarak tarih ve zaman değerleri üzerinde ekleme ve çıkarma işlemleri yapabiliriz.
DateTime Metodları – .Net içerisinde tarih ve zaman değerleri DateTime veri türü ile ifade edilirler.
C# ile çalışırken iki farklı tablo kullanarak Join ile data çekme ihtiyacı duyduğunuzda bu kod yapısını kullanabilirsiniz.
C# ile rastgele sayı üretmek için kullanılan Random() komutunu kısa bir örnekle rahatlıkla anlayacaksınız.
Bu derste, web sitenizde kullanabileceğiniz ve temel olarak bir login sisteminde ihtiyaç duyacağınız, güvenlik önlemleriyle birlikte bir kod örneğini inceleyeceğiz ve veritabanında kayıtlı kullanıcı adlarını kontrol ederek giriş yapmayı öğreneceğiz.