Пример #1
0
        public Insert GenerateGoodInsert(Good good)
        {
            var query = new GoodInsert();

            query.Value = string.Format("INSERT INTO Good (Name) VALUES ('{0}');", good.Name);
            return(query);
        }
        public Insert GenerateInsert(IEntity entity)
        {
            var query = new GoodInsert();

            query.Value = string.Format("INSERT INTO Good (Name) VALUES ('{0}');", (entity as Good).Name);
            return(query);
        }