Hello, How would you produce this in DO: SomeDate DATETIME NOT NULL DEFAULT GETDATE() I can do the DATETIME and NOT NULL parts, but can't get the default value to be GETDATE() instead of a literal date value (a FormatException is thrown during Domain.Build()). |
Hello Eric,
We have plans to support SQL expressions as well but this is not yet implemented. In the code you could always initialize the value in the constructor anyway you want. |