我无法从生成的文件中删除日期/时间戳。
问题是,当我编辑 .cfp 文件时,我会将生产标志设置为“覆盖,删除日期”。但是一旦我保存文件,生产标志就会自动被重写为“默认,RemoveDates”。这发生在生产者和项目级别。
如果我使用项目高级属性通过 GUI 设置标志,则它将制作标志设置为“默认,RemoveDates”。此外,我没有与屏幕截图中相同的标志选项
http://blog.codefluententities.com/2013/04/22/remove-the-current-date-and-time-to-generated-files/
屏幕截图已检查以下内容:
1. 删除差异:删除日期
2. 删除日期
我的选项都不匹配屏幕截图中的选项。唯一看起来相似的是:
- 删除差异 <--- 请注意,屏幕截图中的删除日期在同一行
以下是使用 Codefluent 实体的版本/内部版本 1.0.61214.805 创建的模型
<cf:project defaultNamespace="DemoRemoveDates" xmlns:cf="http://www.softfluent.com/codefluent/2005/1" xmlns:cfx="http://www.softfluent.com/codefluent/modeler/2008/1" xmlns:cfps="http://www.softfluent.com/codefluent/producers.sqlserver/2005/1" xmlns:cfom="http://www.softfluent.com/codefluent/producers.model/2005/1" xmlns:cfasp="http://www.softfluent.com/codefluent/producers.aspnet/2011/1" defaultConnectionString="Database=DemoRemoveDates;Server=.\SQLExpress;Integrated Security=true" defaultProducerProductionFlags="Default, RemoveDates" createDefaultMethodForms="true" createDefaultApplication="false" createDefaultHints="false">
<cf:import path="Default.Surface.cfp" />
<cf:producer enabled="false" productionFlags="None" name="SQL Server Producer" typeName="CodeFluent.Producers.SqlServer.SqlServerProducer, CodeFluent.Producers.SqlServer">
<cf:configuration connectionString="Database=DemoRemoveDates;Server=.\SQLExpress;Integrated Security=true" produceViews="true" targetVersion="Sql2008" targetDirectory="..\DemoRemoveDates.Persistence" cfx:targetProjectLayout="UpdateItems, DontRemove" cfx:targetProject="..\DemoRemoveDates.Persistence\DemoRemoveDates.Persistence.dbproj" />
</cf:producer>
<cf:producer productionFlags="None" name="BOM Producer" typeName="CodeFluent.Producers.CodeDom.CodeDomProducer, CodeFluent.Producers.CodeDom, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1bb6d7cccf1045ec">
<cf:configuration compileWithVisualStudio="true" targetDirectory="..\DemoRemoveDates" cfx:targetProject="..\DemoRemoveDates\DemoRemoveDates.csproj" cfx:targetProjectLayout="Update" />
</cf:producer>
<cf:producer enabled="false" productionFlags="None" name="ASP.NET WebForms Producer" typeName="CodeFluent.Producers.UI.AspNetProducer, CodeFluent.Producers.UI">
<cf:configuration categoryPath="UI\AspNetWebForms" targetDirectory="..\DemoRemoveDates.Web" cfx:targetProject="..\DemoRemoveDates.Web\DemoRemoveDates.Web.csproj" />
</cf:producer>
<cf:entity name="Contact" namespace="DemoRemoveDates" categoryPath="/DemoRemoveDates">
<cf:property name="Id" key="true" />
<cf:property name="Name" />
</cf:entity>
</cf:project>