public KatilimciUzmanlikAratablo FillKatilimciUzmanlikAratablo(IDataReader reader)
 {
     nesne = new KatilimciUzmanlikAratablo();
     nesne.KatilimciId=(Int32)reader["KATILIMCI_ID"];
     nesne.UzmanlikAlaniId=(Int32)reader["UZMANLIK_ALANI_ID"];
     return nesne;
 }
 public int Delete(int katilimciId,DbTransaction dbTransaction,Database db)
 {
     sqlText="DELETE KATILIMCI_UZMANLIK_ARATABLO where KATILIMCI_ID=@katilimciId ";
      			dbComm = db.GetSqlStringCommand(sqlText);
     db.AddInParameter(dbComm, "@katilimciId", DbType.Int32, katilimciId);
     KatilimciUzmanlikAratablo nesne = new KatilimciUzmanlikAratablo();
     nesne.KatilimciId = katilimciId;
     return base.Delete(nesne, dbComm, dbTransaction, db);
 }
 public int Insert(KatilimciUzmanlikAratablo nesne,DbTransaction dbTransaction,Database db)
 {
     sqlText="INSERT INTO KATILIMCI_UZMANLIK_ARATABLO (KATILIMCI_ID,UZMANLIK_ALANI_ID)VALUES(@katilimciId,@uzmanlikAlaniId)SELECT @@IDENTITY";
      			dbComm = db.GetSqlStringCommand(sqlText);
     db.AddInParameter(dbComm, "@katilimciId", DbType.Int32, nesne.KatilimciId==null?(object)DBNull.Value:nesne.KatilimciId);
     db.AddInParameter(dbComm, "@uzmanlikAlaniId", DbType.Int32, nesne.UzmanlikAlaniId==null?(object)DBNull.Value:nesne.UzmanlikAlaniId);
     return base.Insert(nesne, dbComm, dbTransaction, db);
 }
 public int Update(KatilimciUzmanlikAratablo nesne,DbTransaction dbTransaction,Database db)
 {
     sqlText=" UPDATE KATILIMCI_UZMANLIK_ARATABLO set UZMANLIK_ALANI_ID = @uzmanlikAlaniId WHERE KATILIMCI_ID = @katilimciId ";
      			dbComm = db.GetSqlStringCommand(sqlText);
     db.AddInParameter(dbComm, "@katilimciId", DbType.Int32, nesne.KatilimciId==null?(object)DBNull.Value:nesne.KatilimciId);
     db.AddInParameter(dbComm, "@uzmanlikAlaniId", DbType.Int32, nesne.UzmanlikAlaniId==null?(object)DBNull.Value:nesne.UzmanlikAlaniId);
     return base.Update(nesne, dbComm, dbTransaction, db);
 }
 public KatilimciUzmanlikAratablo GetById(int katilimciId,Database db)
 {
     nesne = new KatilimciUzmanlikAratablo();
     sqlText="Select KATILIMCI_ID,UZMANLIK_ALANI_ID from KATILIMCI_UZMANLIK_ARATABLO where KATILIMCI_ID=@katilimciId ";
      			dbComm = db.GetSqlStringCommand(sqlText);
     db.AddInParameter(dbComm, "@katilimciId", DbType.Int32, katilimciId);
     using (IDataReader reader = db.ExecuteReader(dbComm)){
         if(reader.Read()){
             nesne = FillKatilimciUzmanlikAratablo(reader);
         }else nesne=null;
     }
     return nesne;
 }