public virtual bool VwSysAdminUnitSavingScriptTaskExecute(ProcessExecutingContext context) { EntitySchemaColumn sysCultureColumn = Entity.Schema.Columns.GetByName("SysCulture"); var sysCultureId = Entity.GetTypedColumnValue <Guid>(sysCultureColumn.ColumnValueName); if (sysCultureId == Guid.Empty) { var sysCultureUtilities = new SysCultureUtilities(UserConnection); Guid sysDefaultCultureId = sysCultureUtilities.GetDefaultCulture(); Entity.SetColumnValue(sysCultureColumn.ColumnValueName, sysDefaultCultureId); } return(true); }
public Guid GetDefaultCulture() { var sysCultureUtilities = new SysCultureUtilities(UserConnection); return(sysCultureUtilities.GetDefaultCulture()); }