Adf.Data.SmartReferences.SmartReferenceGateway.New C# (CSharp) Method

New() public static method

Create a new data row of IInternalState to insert new data into database.
The current state of the connection is closed.
public static New ( string type ) : IInternalState
type string Set the specified Type column of SmartReference table.
return IInternalState
        public static IInternalState New(string type)
        {
            var state = new AdfQuery()
                .Select()
                .From(SmartReferenceDescriber.Table)
                .New(DataSource);

            state.ID = IdManager.New<Guid>();

            state.Set(SmartReferenceDescriber.Type, type);

            return state;
        }