コード例 #1
0
 public static void ExportSingleData(string folder, List <T> list)
 {
     if (list != null && list.Count > 0)
     {
         FormatterSerializerBll <T> .ExportData(Path.Combine(folder, typeof(T).Name + DateTime.Now.ToString("yyyyMMddhhmmss") + ".wdb"), list);
     }
 }
コード例 #2
0
        public static void BackuData(string folder, string name)
        {
            var list = new BaseBllImpl <T>().SelectAll();

            if (list != null && list.Count > 0)
            {
                FormatterSerializerBll <T> .ExportData(Path.Combine(folder, name + ".wdb"), list);
            }
        }