public BlockTypeDto DefaultSystemBlockType(string name, string description, Guid guid) { var blockType = new BlockTypeDto(); blockType.IsSystem = true; blockType.Name = name; blockType.Description = description; blockType.Guid = guid; return(blockType); }
public void AddBlockType(BlockTypeDto blockType) { Sql(string.Format(@" INSERT INTO [BlockType] ( [IsSystem],[Path],[Name],[Description], [Guid]) VALUES( {0},'{1}','{2}','{3}' '{4}') ", blockType.IsSystem.Bit(), blockType.Path, blockType.Name, blockType.Description.Replace("'", "''"), blockType.Guid)); }