Пример #1
0
        public void addRealStateTypes(RealStateTypes entity)
        {
            string query = $"INSERT INTO [dbo].[RealStateTypes] ([Id] ,[Name]) VALUES ({entity.Id},'{entity.Name}')";

            executeQuery(query);
        }
Пример #2
0
        public void updateRealStateTypes(RealStateTypes entity)
        {
            string query = $"UPDATE [dbo].[RealStateTypes] SET [Id] =  {entity.Id},[Name] = '{entity.Name}'  WHERE Id = {entity.Id}";

            executeQuery(query);
        }