public static SqlError FromBaseObject(BaseObject baseObj)
					{
						if (baseObj == null || baseObj.NativeObject == IntPtr.Zero)
							return null;
						SqlError obj = baseObj as  SqlError;
						if (object.Equals(obj, null))
						{
							obj = new SqlError(CreatedWhenConstruct.CWC_NotToCreate);
							obj.BindNativeObject(baseObj.NativeObject, "CSqlError");
							obj.IncreaseCast();
						}

						return obj;
					}