/// <summary>
 /// Deprecated Method for adding a new object to the Yetki EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToYetki(Yetki yetki)
 {
     base.AddObject("Yetki", yetki);
 }
 /// <summary>
 /// Create a new Yetki object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="firmaId">Initial value of the FirmaId property.</param>
 /// <param name="kullaniciAdi">Initial value of the KullaniciAdi property.</param>
 /// <param name="password">Initial value of the Password property.</param>
 public static Yetki CreateYetki(global::System.Int32 id, global::System.Int32 firmaId, global::System.String kullaniciAdi, global::System.String password)
 {
     Yetki yetki = new Yetki();
     yetki.Id = id;
     yetki.FirmaId = firmaId;
     yetki.KullaniciAdi = kullaniciAdi;
     yetki.Password = password;
     return yetki;
 }
Ejemplo n.º 3
0
 public string FirmaCredentialsEkle(int FirmaId)
 {
     string Basarim = "";
     //Daha öönce yetkilendirme yapılmış mı?
     if (!DahaOnceYetkilendirmeYapilmismi(FirmaId))
     {
         try
         {
             sfKalDataEntities KalData = new sfKalDataEntities();
             Yetki oYetki = new Yetki();
             oYetki.FirmaId = FirmaId;
             oYetki.KullaniciAdi = FirmaIdDenEpostaDon(FirmaId);
             oYetki.Password = RandomPassword.Generate(6, 6);
             KalData.AddToYetki(oYetki);
             KalData.SaveChanges();
         }
         catch (Exception exc)
         {
             Basarim = exc.Message;
         }
     }
     return Basarim;
 }