Exemplo n.º 1
0
 static void Main(string[] args)
 {
     using (var ctx = new KatSystemDbContext())
     {
         using (var writer = new XmlTextWriter(@"c:\Model.edmx", Encoding.Default))
         {
             EdmxWriter.WriteEdmx(ctx, writer);
         }
     }
 }
 public VehiclesRepository(KatSystemDbContext context) : base(context)
 {
 }
Exemplo n.º 3
0
 protected Repository(KatSystemDbContext context)
 {
     dbContext = context;
     Set       = context.Set <T>();
 }