extended-properties

How to access parent's class property if the current class has been instantiated in the parent

穿精又带淫゛_ 提交于 2019-12-25 18:41:04
问题 I'm experimenting with MVC trying to make a simple framework. This is an example of what I'm doing: <?php require_once('config.php'); //Here I have the Config object class App{ protected $config; protected $controller; public function init(){ $this->config = new Config; $this->controller = new Main_Controller; } } class Main_Controller extends App{ public function __construct(){ var_dump($this->config); } } $app = new App; $app->init(); The problem is that my var_dump is returning NULL, so

Grabbing extended properties from SQL Server into DataTable

谁说胖子不能爱 提交于 2019-12-22 11:34:11
问题 I have a view called PersonOverview which has a bunch of columns; it's a totally normal view, nothing special about it. I added an extended property called FlexGridHide with a value of 1 to the DatenbereichCD column of that view using. EXEC sys.sp_addextendedproperty @name = N'FlexGridHide', @value = N'1', @level0type = N'SCHEMA', @level0name = dbo, @level1type = N'VIEW', @level1name = vPersonOverview, @level2type = N'COLUMN', @level2name = DatenbereichCD; I can find that extended property in

Extract SQL Column Extended Properties From LINQ in C#

寵の児 提交于 2019-12-22 11:26:45
问题 i have an SQL table with extended properties on each column. Is there a way to access these from LINQ in c# using Linq2SQL? 回答1: Things like "MS_Description" etc? Not AFAIK; you could write an SP that talks to the store at the database (taking the database object name and column name), and query that via the data-context - but nothing built in. It would also be pretty easy to write some code that uses Expression to get the database names (instead of the OO names) to pass in. Something like:

Store metadata outside of file: Any standard approach on modern Windows?

流过昼夜 提交于 2019-12-21 21:54:00
问题 My C# app syncs files from a remote document management system to a filesystem. The document management system has metadata (date of last audit, secrecy, author...) which is associated with each file but not stored WITHIN each file. The files can be anything (bmp, xwd, pdf, unknown binary) I want to make these metadata visible on the local Windows filesystem. But I can't store metadata WITHIN each file. For instance, changing the secrecy of a file must NOT modify the checksum of the file.

Edit SQL Extended Properties in SharePoint 2010

依然范特西╮ 提交于 2019-12-20 04:32:10
问题 How can I edit extended properties of a table in SharePoint 2010? So far, I'm thinking there's nothing 'out-the-box' that does this. So, I'm assuming this means that I will have to make a custom web-part that extracts the extended properties of a table, then allows me to edit that, and then after editing is complete, the webpart updates the extended properties in SQL. I'm trying to figure out if there's a way to do this without using code (out the box features or something) OR if this is the

How can I retrieve column descriptions from an access database in C#?

跟風遠走 提交于 2019-12-12 15:24:01
问题 I am trying to retrieve column descriptions for MS Access columns using C# (the text entered by the user in the table designer to describe the purpose of a column). How does one go about this? I thought maybe ExtendedProperties in the Column would hold this but when I get a DataTable through an OleDbConnection and loop through the columns, ExtendedProperties always has a count of 0. EDIT: Thanks, Remou, that did the trick. Below is a quick test in C# Catalog cat = new ADOX.CatalogClass();

Creating extended property using EWS and access it from Outlook Add-in

亡梦爱人 提交于 2019-12-10 18:10:07
问题 I am currently working on EWS to have some integration of our company application with Exchange 2010. I am using EWS to create appoinment to Exchange 2010 and it works fine; but recently I tried to add some custom/extended property when creating the appointment, below is my code to add the extended property. Dim customField As New ExtendedPropertyDefinition(DefaultExtendedPropertySet.PublicStrings, "MyCustomField", MapiPropertyType.String) appointment.SetExtendedProperty(customField,

How to get extended MacOS attributes of a file using python?

岁酱吖の 提交于 2019-12-09 18:38:45
问题 I'm interested in getting more information from a file using python. I know that using os.stat (such as below) returns information on the file, but I'd like to get other attributes from the file such as 'Where from?' os.stat(filename) posix.stat_result(st_mode=33184, st_ino=131691855, st_dev=16777220L, st_nlink=1, st_uid=501, st_gid=20, st_size=174241, st_atime=1445046864, st_mtime=1445045836, st_ctime=1445045836) However, these aren't the attributes I'm interested. I'm interested in getting

Slow search for items using extended property on Exchange

核能气质少年 提交于 2019-12-09 12:14:27
问题 Problem at hand Our C# Windows application uses EWS Managed API 2.0 to create appointments in a user's calendar. Each appointment has an extended property with a unique value. It later locates an appointment using FindItems and an ItemView. Users experience significant delays the first time this search is performed. Subsequent response times are entirely acceptable. ("first time" is a little vague here, because users may experience the delay again later in the day) // locate ID of appointment

Grabbing extended properties from SQL Server into DataTable

十年热恋 提交于 2019-12-06 06:26:32
I have a view called PersonOverview which has a bunch of columns; it's a totally normal view, nothing special about it. I added an extended property called FlexGridHide with a value of 1 to the DatenbereichCD column of that view using. EXEC sys.sp_addextendedproperty @name = N'FlexGridHide', @value = N'1', @level0type = N'SCHEMA', @level0name = dbo, @level1type = N'VIEW', @level1name = vPersonOverview, @level2type = N'COLUMN', @level2name = DatenbereichCD; I can find that extended property in SQL Server - no problem - it's there. But when I load data from the view into a DataTable , I'm