コード例 #1
0
        private static Motorcycle ConvertNewMotorcycleToDbMotorcycle(NewMotorcycleModel model, int id)
        {
            Motorcycle m = new Motorcycle();

            m.Displacement = model.Displacement;
            m.EngineType = model.EngineType;
            m.Gears = model.Gears;
            m.TopSpeed = model.TopSpeed;
            m.Torque = model.Torque;
            m.ProductId = id;

            return m;
        }
コード例 #2
0
 partial void UpdateMotorcycle(Motorcycle instance);
コード例 #3
0
 partial void DeleteMotorcycle(Motorcycle instance);
コード例 #4
0
 partial void InsertMotorcycle(Motorcycle instance);