Ejemplo n.º 1
0
        private static void SetGeneratedValue(StateEntry entry, GeneratedValue generatedValue, IProperty property)
        {
            if (generatedValue != null)
            {
                entry[property] = generatedValue.Value;

                if (generatedValue.IsTemporary)
                {
                    entry.MarkAsTemporary(property);
                }
            }
        }
Ejemplo n.º 2
0
        private static void SetGeneratedValue(StateEntry entry, IProperty property, object generatedValue, bool isTemporary)
        {
            if (generatedValue != null)
            {
                entry[property] = generatedValue;

                if (isTemporary)
                {
                    entry.MarkAsTemporary(property);
                }
            }
        }