public void InsertFromInfo(FuenteEntityInfo EntityInfo)
 {
     try
     {
         FuenteEntityInsert EntityInsert = new FuenteEntityInsert();
         EntityInsert.LoadFromInfo(EntityInfo);
         this.Insert(EntityInsert);
     }
     catch (Exception ex)
     {
         Helpers.Logger.Logger.LogExceptionStatic(ex);
         throw ex;
     }
 }
 public void Insert(FuenteEntityInsert EntityInsert)
 {
     try
     {
         if (!EntityInsert.Validate())
         {
             throw new Exception(EntityInsert.ErroresQueInvalidanLaEntidad);
         }
         this.CreateDataAccess().Insert(EntityInsert);
     }
     catch (Exception ex)
     {
         Helpers.Logger.Logger.LogExceptionStatic(ex);
         throw ex;
     }
 }
        public void Insert(FuenteEntityInsert EntityInsert)
        {
            DbCommand storedProcCommand = this.Database.GetStoredProcCommand("Fuente_Insert");

            try
            {
                using (storedProcCommand)
                {
                    this.Database.AddInParameter(storedProcCommand, "FntID", DbType.AnsiString, (object)EntityInsert.FntID);
                    this.Database.AddInParameter(storedProcCommand, "Nombre", DbType.AnsiString, (object)EntityInsert.Nombre);
                    this.Database.ExecuteNonQuery(storedProcCommand);
                }
            }
            catch (SqlException ex)
            {
                throw ex;
            }
            catch (Exception exec)
            { throw exec; }
        }