Exemple #1
0
 /// <summary>
 ///
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="entity"></param>
 /// <param name="path"></param>
 /// <param name="format"></param>
 public static void WriteInto <T>(T entity, string fileName, string filePath, Format::Format format) where T : class
 {
     try
     {
         switch (format)
         {
         case Format::Format.Xml:
             XmlContext.Create <T>(entity, fileName, filePath);
             break;
         }
     }catch
     {
         throw;
     }
 }
Exemple #2
0
 public Entity Create() => _context.Create <Entity>();