public static string GetPropertyName(ArchAngel.Interfaces.Scripting.NHibernate.Model.IColumn column) { object[] parms = new object[] { column }; string body = (string)PropertyNameMethod.Invoke(null, parms); if (body.StartsWith(" ")) { body = body.Substring(10); } return(body); }
private static ArchAngel.Interfaces.Scripting.NHibernate.Model.IColumn CreateIColumn(ArchAngel.Providers.EntityModel.Model.DatabaseLayer.IColumn column) { ArchAngel.Interfaces.Scripting.NHibernate.Model.IColumn newColumn = new ArchAngel.Interfaces.Scripting.NHibernate.Model.IColumn(); newColumn.Name = column.Name; newColumn.ScriptObject = column; newColumn.IsIdentity = column.IsIdentity; newColumn.IsNullable = column.IsNullable; newColumn.Length = column.Size; newColumn.Type = column.OriginalDataType; newColumn.SizeIsMax = column.SizeIsMax; return newColumn; }