/// <summary> /// The below is executed as soon as the Model is loaded. /// It is used for doing things like setting up properties to be used later. /// </summary> /// <param name="schema"></param> public void DefineSchema(IModelHelperAddInSchema schema) { Logit("Defining ModelHelper Schema with default Properties"); var connectionStringProp = schema.Properties.AddStringProperty("ConnectionString"); connectionStringProp.DisplayName = "Connection String"; connectionStringProp.Description = "Microsoft SQL Server Connection String."; connectionStringProp.DefaultValue = String.Empty; var connectionTimeOutProp = schema.Properties.AddStringProperty("ConnectionTimeOut"); connectionTimeOutProp.DisplayName = "Connection TimeOut (seconds)"; connectionTimeOutProp.Description = "Connection TimeOut in Seconds."; connectionTimeOutProp.DefaultValue = "600"; var dateTimeFormatProp = schema.Properties.AddStringProperty("DateTimeFormat"); dateTimeFormatProp.DisplayName = "DateTime Format String"; dateTimeFormatProp.Description = "DateTime Format String Used To Save To Database (e.g. yyyy-MM-dd HH:mm:ss). String value need to be defined."; dateTimeFormatProp.DefaultValue = "yyyy-MM-dd HH:mm:ss"; var logToDiskProp = schema.Properties.AddBooleanProperty("LogToDisk"); logToDiskProp.DisplayName = "Log DirectConnect status to disk"; logToDiskProp.Description = "The DirectConnect plugin generates status and error logs. If set to true, these will be logged to Documents > SimioDirectConnect.log"; logToDiskProp.DefaultValue = true; }
public void DefineSchema(IModelHelperAddInSchema schema) { }