コード例 #1
0
 public static void Insert(IYZDbProvider provider, IDbConnection cn, SpriteLink link)
 {
     try
     {
         provider.Insert(cn, link);
     }
     catch (Exception e)
     {
         throw new BPMException(BPMExceptionType.DBInsertDataErr, "BPASpriteLink", e.Message);
     }
 }
コード例 #2
0
 public static SpriteLinkCollection GetFileUsedByLinks(IYZDbProvider provider, IDbConnection cn, string fileid, string property)
 {
     try
     {
         SpriteLinkCollection links = new SpriteLinkCollection();
         using (YZReader reader = new YZReader(provider.GetFileUsedByLinks(cn, fileid, property)))
         {
             while (reader.Read())
             {
                 SpriteLink link = new SpriteLink(reader);
                 links.Add(link);
             }
         }
         return(links);
     }
     catch (Exception e)
     {
         throw new BPMException(BPMExceptionType.DBLoadDataErr, "BPASpriteLink", e.Message);
     }
 }