Ejemplo n.º 1
0
 public ddEntityBE GetddEntity(string entityName)
 {
     if (!myddEntity.ContainsKey(entityName))
     {
         ddEntityBE d = new ddEntityBE(this, entityName);
         myddEntity.Add(entityName, d);
     }
     return(myddEntity[entityName]);
 }
Ejemplo n.º 2
0
 private void LoadDDEntities(DataTable dt)
 {
     //look in ddtable for all "isDynamic" tables
     //we can make this smarter later
     //if we create them all now it will make adding rows easier
     foreach (lmDatasets.appDB.ddTableRow dtr in myatMng.DB.ddTable.Select("isDynamic=1"))
     {
         ddEntityBE d = GetddEntity(dtr.TableName);
         if (dt != null)
         {
             DataRow[] drs = dt.Select("TableId=" + dtr.TableId.ToString());
             if (drs.Length > 0)
             {
                 DataTable dtFilter = drs.CopyToDataTable();
                 d.Fill(dtFilter);
             }
         }
     }
 }